code: private void addMode(CliMode mode, Class<?> annotatedClass) {
  
      CliModeContainer container = new CliModeContainer(mode, annotatedClass);
      addMode(container);
    }
docs: This method adds the given {@link CliMode}.
  
  @param mode is the {@link CliMode} to add.
  @param annotatedClass is the Class where the {@link CliMode} was annotated.