presto-main/src/main/java/io/prestosql/execution/QueryStateMachine.java/QueryStateMachine/setOutput
class QueryStateMachine:    public void setOutput(Optional<Output> output)
    {
        requireNonNull(output, "output is null");
        this.output.set(output);
    }