presto-main/src/main/java/io/prestosql/execution/StateMachine.java/StateMachine/getStateChangeListeners
class StateMachine:    @VisibleForTesting
    List<StateChangeListener<T>> getStateChangeListeners()
    {
        synchronized (lock) {
            return ImmutableList.copyOf(stateChangeListeners);
        }
    }