code: public static Method makeAccessible(Method method) {
          if (method == null) {
              throw new IllegalArgumentException("Method argument method must not be null.");
          }
  
          if (isInaccessible(method) && !method.isAccessible()) {
              method.setAccessible(true);
          }
  
          return method;
      }
docs: Makes the {@link Method#setAccessible(boolean) accessible} only if it is not.
  
  @param method must not be <code>null</code>.
  @return the given method.