presto-main/src/main/java/io/prestosql/sql/analyzer/Analysis.java/Analysis/setAggregates
class Analysis:    public void setAggregates(QuerySpecification node, List<FunctionCall> aggregates)
    {
        this.aggregates.put(NodeRef.of(node), ImmutableList.copyOf(aggregates));
    }