presto-main/src/main/java/io/prestosql/execution/resourcegroups/StochasticPriorityQueue.java/Node/isLeaf
class Node:        public boolean isLeaf()
        {
            return !left.isPresent() && !right.isPresent();
        }