public static Field getField(Object owner, String fieldName) {
    Objects.requireNonNull(owner);
    try {
      return owner.getClass().getDeclaredField(fieldName);
    } catch (NoSuchFieldException e) {
      String message = String.format("Getting %s declaration for %s", fieldName, owner);
      throw new RuntimeException(message, e);
    }
  }
Returns a {@link Field} that describes the named field in the given owner.
build-tools/geode-testing-isolation/src/main/java/org/apache/geode/gradle/testing/process/Reflection.java