presto-main/src/main/java/io/prestosql/sql/planner/plan/AggregationNode.java/AggregationNode/hasEmptyGroupingSet
class AggregationNode:    public boolean hasEmptyGroupingSet()
    {
        return !groupingSets.getGlobalGroupingSets().isEmpty();
    }