presto-spi/src/main/java/io/prestosql/spi/predicate/SortedRangeSet.java/SortedRangeSet/checkTypeCompatibility
class SortedRangeSet:    private void checkTypeCompatibility(Marker marker)
    {
        if (!getType().equals(marker.getType())) {
            throw new IllegalStateException(format("Marker of %s does not match SortedRangeSet of %s", marker.getType(), getType()));
        }
    }