private static boolean isClientCodeWrapper(final Object obj, final StandardJavaFileManager delegateTo) {
    return obj instanceof StandardJavaFileManager && findField(obj.getClass(), new BooleanFunction<Field>() {
      @Override
      public boolean fun(Field f) {
        try {
          return f.get(obj) == delegateTo;
        }
        catch (Throwable ignored) {
          return false;
        }
      }
    }) != null;
  }
private static boolean isClientCodeWrapper(final Object obj, final StandardJavaFileManager delegateTo)