presto-main/src/main/java/io/prestosql/execution/SqlQueryExecution.java/SqlQueryExecution/addFinalQueryInfoListener
class SqlQueryExecution:    @Override
    public void addFinalQueryInfoListener(StateChangeListener<QueryInfo> stateChangeListener)
    {
        stateMachine.addQueryInfoStateChangeListener(stateChangeListener);
    }