presto-main/src/main/java/io/prestosql/execution/QueryStateMachine.java/QueryStateMachine/setMemoryPool
class QueryStateMachine:    public void setMemoryPool(VersionedMemoryPoolId memoryPool)
    {
        this.memoryPool.set(requireNonNull(memoryPool, "memoryPool is null"));
    }