presto-main/src/main/java/io/prestosql/sql/planner/iterative/rule/PushAggregationThroughOuterJoin.java/PushAggregationThroughOuterJoin/isUsingSymbols
class PushAggregationThroughOuterJoin:    private static boolean isUsingSymbols(AggregationNode.Aggregation aggregation, Set<Symbol> sourceSymbols)
    {
        List<Expression> functionArguments = aggregation.getArguments();
        return sourceSymbols.stream()
                .map(Symbol::toSymbolReference)
                .anyMatch(functionArguments::contains);
    }