presto-spi/src/main/java/io/prestosql/spi/predicate/Marker.java/Marker/checkTypeCompatibility
class Marker:    private void checkTypeCompatibility(Marker marker)
    {
        if (!type.equals(marker.getType())) {
            throw new IllegalArgumentException(format("Mismatched Marker types: %s vs %s", type, marker.getType()));
        }
    }