presto-main/src/main/java/io/prestosql/util/SpatialJoinUtils.java/SpatialJoinUtils/extractSupportedSpatialComparisons
class SpatialJoinUtils:    public static List<ComparisonExpression> extractSupportedSpatialComparisons(Expression filterExpression)
    {
        return extractConjuncts(filterExpression).stream()
                .filter(ComparisonExpression.class::isInstance)
                .map(ComparisonExpression.class::cast)
                .filter(SpatialJoinUtils::isSupportedSpatialComparison)
                .collect(toImmutableList());
    }