presto-main/src/main/java/io/prestosql/memory/MemoryResource.java/MemoryResource/MemoryResource
class MemoryResource:    @Inject
    public MemoryResource(LocalMemoryManager memoryManager, TaskManager taskManager)
    {
        this.memoryManager = requireNonNull(memoryManager, "memoryManager is null");
        this.taskManager = requireNonNull(taskManager, "taskManager is null");
    }