code: private static boolean isPublicInstanceMethod(Method method)
      {
          return Modifier.isPublic(method.getModifiers()) &&
              !Modifier.isStatic(method.getModifiers());
      }
docs: Returns whether the modifiers of the given method show that it is
  a public instance method.
  
  @param method The method
  @return Whether the given method is a public instance method