code: public static Method getAccessibleMethod(Method method) {
  
          // Make sure we have a method to check
          if (method == null) {
              return (null);
          }
  
          return getAccessibleMethod(method.getDeclaringClass(), method);
      }
docs: <p>Return an accessible method (that is, one that can be invoked via
  reflection) that implements the specified Method.  If no such method
  can be found, return <code>null</code>.</p>
  
  @param method The method that we wish to call
  @return The accessible method