docs: protected static Object getField(String fieldName, Object mojo) throws Exception {
          Field field = null;
          try {
              field = mojo.getClass().getDeclaredField(fieldName);
          } catch (NoSuchFieldException ex) {
              // Ignore exception and try superclass.
              field = mojo.getClass().getSuperclass().getDeclaredField(fieldName);
          }
          field.setAccessible(true);
          return field.get(mojo);
      }