code: @NullSafe
    public static boolean isClass(Class type) {
      return type != null && !(type.isAnnotation() || type.isArray() || type.isEnum() || type.isInterface()
        || type.isPrimitive());
    }
docs: Determines whether the specified Class object represents an actual class, and not an Annotation, Array, Enum,
  Interface or Primitive type.
  
  @param type the Class object tested as an actual class.
  @return true iff the Class object is not null and represents an actual class.