presto-main/src/main/java/io/prestosql/execution/resourcegroups/StochasticPriorityQueue.java/StochasticPriorityQueue/contains
class StochasticPriorityQueue:    @Override
    public boolean contains(E element)
    {
        return index.containsKey(element);
    }