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