presto-main/src/main/java/io/prestosql/sql/planner/iterative/rule/SingleDistinctAggregationToGroupBy.java/SingleDistinctAggregationToGroupBy/noMasks
class SingleDistinctAggregationToGroupBy:    private static boolean noMasks(AggregationNode aggregationNode)
    {
        return aggregationNode.getAggregations()
                .values().stream()
                .noneMatch(aggregation -> aggregation.getMask().isPresent());
    }