Set<KeyStroke> (@NotNull String actionId) { Set<KeyStroke> result = new HashSet<>(); for (Shortcut shortcut : KeymapUtil.getActiveKeymapShortcuts(actionId).getShortcuts()) { if (shortcut instanceof KeyboardShortcut keyboardShortcut) { result.add(keyboardShortcut.getFirstKeyStroke()); } } return result; }