object/src/main/java/com/orientechnologies/common/reflection/OReflectionHelper.java
public static boolean isJavaType(Class<?> clazz) {
    if (clazz.isPrimitive())
      return true;
    else if (clazz.getName().startsWith("java.lang"))
      return true;
    else if (clazz.getName().startsWith("java.util"))
      return true;
    else if (clazz.isArray())
      return true;
    return false;
  }
public static boolean isJavaType(Class<?> clazz) {
    if (clazz.isPrimitive())
      return true;
    else if (clazz.getName().startsWith("java.lang"))
      return true;
    else if (clazz.getName().startsWith("java.util"))
      return true;
    else if (clazz.isArray())
      return true;
    return false;
  }
Checks if a class is a Java type: Map, Collection,arrays, Number (extensions and primitives), String, Boolean..

@param clazz
Class<?> to examine
@return true if clazz is Java type, false otherwise