presto-main/src/main/java/io/prestosql/type/ArrayParametricType.java/ArrayParametricType/createType
class ArrayParametricType:    @Override
    public Type createType(TypeManager typeManager, List<TypeParameter> parameters)
    {
        checkArgument(parameters.size() == 1, "Array type expects exactly one type as a parameter, got %s", parameters);
        checkArgument(
                parameters.get(0).getKind() == ParameterKind.TYPE,
                "Array expects type as a parameter, got %s",
                parameters);
        return new ArrayType(parameters.get(0).getType());
    }