code: boolean makeAccessibleWithUnsafe(AccessibleObject ao) {
      if (theUnsafe != null && overrideField != null) {
        try {
          Method method = unsafeClass.getMethod("objectFieldOffset", Field.class);
          long overrideOffset = (Long) method.invoke(theUnsafe, overrideField);  // long overrideOffset = theUnsafe.objectFieldOffset(overrideField);
          Method putBooleanMethod = unsafeClass.getMethod("putBoolean",  Object.class, long.class, boolean.class);
          putBooleanMethod.invoke(theUnsafe, ao, overrideOffset, true); // theUnsafe.putBoolean(ao, overrideOffset, true);
          return true;
        } catch (Exception ignored) { // do nothing
        }
      }
      return false;
    }
docs: Visible for testing only