code: @SuppressWarnings({ "unchecked", "UnusedParameters", "TryWithIdenticalCatches" })
    public static <T> T readField(
        @NonNull Class<T> type, @NonNull Class<?> enclosingClass,
        @NonNull Object target, @NonNull String field) {
      try {
        Field f = enclosingClass.getDeclaredField(field);
        f.setAccessible(true);
        return (T) f.get(target);
      } catch (NoSuchFieldException e) {
        throw new RuntimeException(e);
      } catch (IllegalAccessException e) {
        throw new RuntimeException(e);
      }
    }
docs: Reads a fields value via reflection.