goja-core/src/main/java/goja/core/kits/reflect/ClassKit.java
public static boolean isPrimitiveOrWrapper(Class<?> clazz) {
        Preconditions.checkNotNull(clazz, "Class must not be null");
        return (clazz.isPrimitive() || isPrimitiveWrapper(clazz));
    }
public static boolean isPrimitiveOrWrapper(Class<?> clazz) {
        Preconditions.checkNotNull(clazz, "Class must not be null");
        return (clazz.isPrimitive() || isPrimitiveWrapper(clazz));
    }
Check if the given class represents a primitive (i.e. boolean, byte,
char, short, int, long, float, or double) or a primitive wrapper
(i.e. Boolean, Byte, Character, Short, Integer, Long, Float, or Double).

@param clazz the class to check
@return whether the given class is a primitive or primitive wrapper class