docs: public static Optional<Field> findField(Class type, String name) {
          Optional<Field> declaredField = findDeclaredField(type, name);
          if (!declaredField.isPresent()) {
              while ((type = type.getSuperclass()) != null) {
                  declaredField = findField(type, name);
                  if (declaredField.isPresent()) {
                      break;
                  }
              }
          }
          return declaredField;
      }