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