void (@NotNull Editor editor, @NotNull String actionId) { ThreadingAssertions.assertEventDispatchThread(); AnAction action = ActionManager.getInstance().getAction(actionId); action.registerCustomShortcutSet(action.getShortcutSet(), editor.getContentComponent()); }