public static void setAccessibleIgnoringExceptions(@NotNull AccessibleObject o, boolean accessible) {
    try {
      setAccessible(o, accessible);
    } catch (RuntimeException ignored) {
      String format = "Failed to set 'accessible' flag of %s to %s";
      logger.log(Level.SEVERE, String.format(format, o.toString(), String.valueOf(accessible)), ignored);
    }
  }
public static void setAccessibleIgnoringExceptions ( @ NotNull AccessibleObject o , boolean accessible ) { try { setAccessible ( o , accessible ) ; } catch ( RuntimeException ignored ) { String format = "Failed to set 'accessible' flag of %s to %s" ; logger . log ( Level . SEVERE , String . format ( format , o . toString ( ) , String . valueOf ( accessible ) ) , ignored ) ; } }
Sets the {@code accessible} flag of the given {@code AccessibleObject} to the given {@code boolean} value, ignoring
any thrown exception.

@param o          the given {@code AccessibleObject}.
@param accessible the value to set the {@code accessible} flag to.