public static void length(@Nullable String s, String name, int min, int max) {
        if (s == null) {
            if (min == -1) {
                throw ResponseException.get(ResponseStatusCode.ILLEGAL_ARGUMENT,
                        ("\""
                                + name
                                + "\" must not be null, and have a length greater than or equal to 0, and less than or equal to "
                                + max).intern());
            }
            return;
        }
        int length = s.length();
        if (length < min || length > max) {
            throw ResponseException.get(ResponseStatusCode.ILLEGAL_ARGUMENT,
                    ("\""
                            + name
                            + "\" must have a length greater than or equal to "
                            + min
                            + ", and 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