presto-main/src/main/java/io/prestosql/sql/planner/SymbolsExtractor.java/SymbolsExtractor/extractUnique
class SymbolsExtractor:    public static Set<Symbol> extractUnique(Aggregation aggregation)
    {
        return ImmutableSet.copyOf(extractAll(aggregation));
    }