presto-main/src/main/java/io/prestosql/sql/analyzer/Analysis.java/Analysis/getGroupingSets
class Analysis:    public GroupingSetAnalysis getGroupingSets(QuerySpecification node)
    {
        return groupingSets.get(NodeRef.of(node));
    }