presto-main/src/main/java/io/prestosql/execution/SqlStageExecution.java/SqlStageExecution/addStateChangeListener
class SqlStageExecution:    public void addStateChangeListener(StateChangeListener<StageState> stateChangeListener)
    {
        stateMachine.addStateChangeListener(stateChangeListener);
    }