code: public static <T extends AccessibleObject> T makeAccessible(T accessibleObject) {
          AccessController.doPrivileged((PrivilegedAction<Object>) () -> {
              accessibleObject.setAccessible(true);
              return null;
          });
          return accessibleObject;
      }
docs: Makes an {@link AccessibleObject} accessible by invoking
  {@link AccessibleObject#setAccessible(boolean)}
  in a {@link PrivilegedAction}.
  
  @param accessibleObject the object to make accessible.
  @param <T>              the type of object.
  @return the object made accessible.