void (@NotNull ShortcutSet shortcutSet) { if (myShortcutSet != shortcutSet && myShortcutSet != CustomShortcutSet.EMPTY && LoadingState.PROJECT_OPENED.isOccurred()) { ActionManager actionManager = ApplicationManager.getApplication().getServiceIfCreated(ActionManager.class); if (actionManager != null && actionManager.getId(this) != null) { LOG.warn("ShortcutSet of global AnActions should not be changed outside of KeymapManager.\n" + "This is likely not what you wanted to do. Consider setting shortcut in keymap defaults, inheriting from other action " + "using `use-shortcut-of` or wrapping with EmptyAction.wrap().", new Throwable(this.toString())); } } myShortcutSet = shortcutSet; }