presto-main/src/main/java/io/prestosql/metadata/SqlAggregationFunction.java/SqlAggregationFunction/specialize
class SqlAggregationFunction:    public abstract InternalAggregationFunction specialize(BoundVariables boundVariables, int arity, Metadata metadata);