presto-main/src/main/java/io/prestosql/metadata/SqlAggregationFunction.java/SqlAggregationFunction/createFunctionsByAnnotations
class SqlAggregationFunction:    public static List<SqlAggregationFunction> createFunctionsByAnnotations(Class<?> aggregationDefinition)
    {
        return AggregationFromAnnotationsParser.parseFunctionDefinitions(aggregationDefinition)
                .stream()
                .map(x -> (SqlAggregationFunction) x)
                .collect(toImmutableList());
    }