presto-spi/src/main/java/io/prestosql/spi/predicate/SortedRangeSet.java/Builder/add
class Builder:        Builder add(Range range)
        {
            if (!type.equals(range.getType())) {
                throw new IllegalArgumentException(format("Range type %s does not match builder type %s", range.getType(), type));
            }

            ranges.add(range);
            return this;
        }