presto-main/src/main/java/io/prestosql/execution/resourcegroups/IndexedPriorityQueue.java/IndexedPriorityQueue/remove
class IndexedPriorityQueue:    @Override
    public boolean remove(E element)
    {
        Entry<E> entry = index.remove(element);
        if (entry != null) {
            queue.remove(entry);
            return true;
        }
        return false;
    }