public static void setAccessible(@NotNull AccessibleObject o, boolean accessible) {
    AccessController.doPrivileged(new SetAccessibleAction(o, accessible));
  }
public static void setAccessible ( @ NotNull AccessibleObject o , boolean accessible ) { AccessController . doPrivileged ( new SetAccessibleAction ( o , accessible ) ) ; }
Sets the {@code accessible} flag of the given {@code AccessibleObject} to the given {@code boolean} value.

@param o          the given {@code AccessibleObject}.
@param accessible the value to set the {@code accessible} flag to.
@throws NullPointerException if the given  {@code AccessibleObject} is {@code null}.
@throws SecurityException    if the request is denied.