presto-main/src/main/java/io/prestosql/operator/window/AggregateWindowFunction.java/AggregateWindowFunction/createArgs
class AggregateWindowFunction:    private static List<Integer> createArgs(InternalAggregationFunction function)
    {
        ImmutableList.Builder<Integer> list = ImmutableList.builder();
        for (int i = 0; i < function.getParameterTypes().size(); i++) {
            list.add(i);
        }
        return list.build();
    }