public static boolean isBaseDataType(Class clazz) {
        return
                clazz.equals(String.class) ||
                        clazz.equals(Integer.class) ||
                        clazz.equals(Byte.class) ||
                        clazz.equals(Long.class) ||
                        clazz.equals(Double.class) ||
                        clazz.equals(Float.class) ||
                        clazz.equals(Character.class) ||
                        clazz.equals(Short.class) ||
                        clazz.equals(BigDecimal.class) ||
                        clazz.equals(BigInteger.class) ||
                        clazz.equals(Boolean.class) ||
                        clazz.equals(Date.class) ||
                        clazz.isPrimitive();
    }
Look up and return a field if it exists.
Like {@link #findField}, but doesn't throw an exception if the field doesn't exist.

@param clazz     The class which either declares or inherits the field.
@param fieldName The field name.
@return A reference to the field, or {@code null} if it doesn't exist.
android/android_framework/base/src/main/java/util/ReflectionUtils.java