presto-main/src/main/java/io/prestosql/execution/QueryStateMachine.java/QueryStateMachine/getFinalQueryInfo
class QueryStateMachine:    public Optional<QueryInfo> getFinalQueryInfo()
    {
        return finalQueryInfo.get();
    }