docs: public static Field getFieldFromClass(String field, Class<? extends Object> clazz) {
          try {
              return clazz.getDeclaredField(field);
          } catch (Exception e) {
              try {
                  return clazz.getField(field);
              } catch (Exception ex) {
              }
          }
          return null;
      }