@ApiStatus.Internal
  public void initAction(@NotNull AnAction targetAction) {
    copyTemplatePresentation(getTemplatePresentation(), targetAction.getTemplatePresentation());
    targetAction.setShortcutSet(getShortcutSet());
    copyActionTextOverrides(targetAction);
    for (Supplier<String> synonym : synonyms) {
      targetAction.addSynonym(synonym);
    }
    if (targetAction instanceof ActionGroup) {
      LOG.warn(String.format("ActionGroup should be registered using <group> tag: id=\"%s\" class=\"%s\"",
                             id, targetAction.getClass().getName()));
    }
  }
@ApiStatus.Internal
  public void initAction(@NotNull AnAction targetAction)