boolean (Class<?> propertyClass) { return propertyClass.isPrimitive() || propertyClass.isEnum() || Number.class.isAssignableFrom(propertyClass) || Boolean.class.isAssignableFrom(propertyClass) || Character.class.isAssignableFrom(propertyClass) || CharSequence.class.isAssignableFrom(propertyClass); }