code: static void setAccessible(final Method m, final boolean value)
     {
        AccessController.doPrivileged(new PrivilegedAction<Object>() 
        {
           public Object run()
           {
              m.setAccessible(value);
              return null;
           }
        });
     }
docs: Invoke setAccessible on a method
  @param m The method
  @param value The value