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