code: public static Optional<Field> getField(Class<?> type, final String fieldName) {
          Optional<Field> field = Iterables.tryFind(newArrayList(type.getDeclaredFields()), havingFieldName(fieldName));
  
          if (!field.isPresent() && type.getSuperclass() != null){
              field = getField(type.getSuperclass(), fieldName);
          }
  
          return field;
      }
docs: Finds the first Field with given field name in the Class and in its super classes.
  
  @param type      The Class type
  @param fieldName The field name to get
  @return an {@code Optional}. Use isPresent() to find out if the field name was found.