presto-main/src/main/java/io/prestosql/operator/window/ReflectionWindowFunctionSupplier.java/ReflectionWindowFunctionSupplier/newWindowFunction
class ReflectionWindowFunctionSupplier:    @Override
    protected T newWindowFunction(List<Integer> inputs, boolean ignoreNulls)
    {
        try {
            switch (constructorType) {
                case NO_INPUTS:
                    return constructor.newInstance();
                case INPUTS:
                    return constructor.newInstance(inputs);
                case INPUTS_IGNORE_NULLS:
                    return constructor.newInstance(inputs, ignoreNulls);
                default:
                    throw new VerifyException("Unhandled constructor type: " + constructorType);
            }
        }
        catch (ReflectiveOperationException e) {
            throw new RuntimeException(e);
        }
    }