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