private Optional<FieldRange> findCompatibleRange(IntItem item, List<FieldRange> fieldRanges) {
        for (FieldRange fieldRange : fieldRanges) {
            if (fieldRange.isCompatibleWith(item))
                return Optional.of(fieldRange);
        }
        return Optional.empty();
    }
Recursively performs the range optimization on this query tree and returns whether at least one optimization was done
container-search/src/main/java/com/yahoo/search/querytransform/RangeQueryOptimizer.java