presto-main/src/main/java/io/prestosql/execution/SqlQueryManager.java/SqlQueryManager/addOutputInfoListener
class SqlQueryManager:    @Override
    public void addOutputInfoListener(QueryId queryId, Consumer<QueryOutputInfo> listener)
    {
        requireNonNull(listener, "listener is null");

        queryTracker.getQuery(queryId).addOutputInfoListener(listener);
    }