presto-spi/src/main/java/io/prestosql/spi/type/VarcharType.java/VarcharType/createVarcharType
class VarcharType:    public static VarcharType createVarcharType(int length)
    {
        if (length > MAX_LENGTH || length < 0) {
            // Use createUnboundedVarcharType for unbounded VARCHAR.
            throw new IllegalArgumentException("Invalid VARCHAR length " + length);
        }
        return new VarcharType(length);
    }