docs: public static boolean hasMethod(Class<?> clazz, String methodName, Class<?>... parameterTypes)
    {
      try {
        clazz.getDeclaredMethod(methodName, parameterTypes);
        return true;
      }
      catch(SecurityException e) {
        throw new BugError(e);
      }
      catch(NoSuchMethodException expectable) {
        // ignore exception since is expected
      }
      return false;
    }