code: public static Class<?> getFieldType(Class<?> clazz, String fieldName) {
          Field f = getField(clazz, fieldName);
  
          if (f == null) {
              return null;
          }
  
          return f.getType();
      }
docs: Returns the type of a field if it exists within the class. Calling this
  method is equal to calling #
  {@link ReflectionUtils#getField(java.lang.Class, java.lang.String)
  } with
  a null check and finally return the type via getType().
  
  @param clazz     The class within to look for the field with the given field
  name
  @param fieldName The name of the field to be returned
  @return The type of the field if it can be found, otherwise null
  @see ReflectionUtils#getField(java.lang.Class, java.lang.String)