presto-main/src/main/java/io/prestosql/operator/window/AbstractWindowFunctionSupplier.java/AbstractWindowFunctionSupplier/createWindowFunction
class AbstractWindowFunctionSupplier:    @Override
    public final WindowFunction createWindowFunction(List<Integer> argumentChannels, boolean ignoreNulls)
    {
        requireNonNull(argumentChannels, "inputs is null");
        checkArgument(argumentChannels.size() == signature.getArgumentTypes().size(),
                "Expected %s arguments for function %s, but got %s",
                signature.getArgumentTypes().size(),
                signature.getName(),
                argumentChannels.size());

        return newWindowFunction(argumentChannels, ignoreNulls);
    }