public static void maxLength(@Nullable Collection<String> items, String name, int max) {
        if (items == null) {
            return;
        }
        for (String item : items) {
            int length = item.length();
            if (length > max) {
                throw ResponseException.get(ResponseStatusCode.ILLEGAL_ARGUMENT,
                        ("The item of \""
                                + name
                                + "\" must have a length less than or equal to "
                                + max).intern());
            }
        }
    }
@param min if -1, it means the string cannot be null
turms-server-common/src/main/java/im/turms/server/common/infra/validation/Validator.java