code: public static boolean isObjClass(Class<?> type) {
          if (type.isPrimitive() || type.isEnum() || type.isArray()) {
              return false;
          }
  
          String block = BASIC_PACKAGE_PREFIX_LIST.stream().filter(prefix -> type.getName().startsWith(prefix)).findAny().orElse(null);
          if (block != null) {
              return false;
          }
  
          return !PRIMITIVE_CLASS_LIST.contains(type);
      }
docs: Is obj class boolean.
  
  @param type the type
  @return the boolean