presto-main/src/main/java/io/prestosql/execution/SqlQueryExecution.java/SqlQueryExecution/addStateChangeListener
class SqlQueryExecution:    @Override
    public void addStateChangeListener(StateChangeListener<QueryState> stateChangeListener)
    {
        try (SetThreadName ignored = new SetThreadName("Query-%s", stateMachine.getQueryId())) {
            stateMachine.addStateChangeListener(stateChangeListener);
        }
    }