docs: private boolean isValidCommandMethod(Object service, String commandName) {
          try {
              service.getClass().getMethod(commandName, PrintWriter.class, String[].class);
              return true;
          } catch (NoSuchMethodException e) {
              return false;
          }
      }