presto-resource-group-managers/src/main/java/io/prestosql/plugin/resourcegroups/SelectorResourceEstimate.java/Range/contains
class Range:        boolean contains(T value)
        {
            return (!min.isPresent() || min.get().compareTo(value) <= 0) &&
                    (!max.isPresent() || max.get().compareTo(value) >= 0);
        }