void (@NotNull Editor editor, @NotNull String actionId, @NotNull AnAction action) { ThreadingAssertions.assertEventDispatchThread(); Keymap keymap = KeymapManager.getInstance().getActiveKeymap(); Shortcut[] shortcuts = keymap.getShortcuts(actionId); action.registerCustomShortcutSet(new CustomShortcutSet(shortcuts), editor.getContentComponent()); }