public static <T extends BaseEnum<?>> boolean isValidEnum(final Class<T> clazz, final String code) {
        return isValidEnum(clazz, code, true);
    }
Verify whether it is a valid enumeration

@param clazz enumeration class
@param code the encoding of the enumeration, null is also considered a valid enumeration
@param <T> The type of enumeration
@return Is it valid?
chat2db-server/chat2db-server-tools/chat2db-server-tools-common/src/main/java/ai/chat2db/server/tools/common/util/EasyEnumUtils.java