presto-main/src/main/java/io/prestosql/sql/planner/iterative/rule/RewriteSpatialPartitioningAggregation.java/RewriteSpatialPartitioningAggregation/hasSpatialPartitioningAggregation
class RewriteSpatialPartitioningAggregation:    private static boolean hasSpatialPartitioningAggregation(AggregationNode aggregationNode)
    {
        return aggregationNode.getAggregations().values().stream()
                .anyMatch(aggregation -> aggregation.getResolvedFunction().getSignature().getName().equals(NAME) && aggregation.getArguments().size() == 1);
    }