private static KeyStroke[] getKeyStrokes(String actionId, KeymapManager keymapManager) {
    List<KeyStroke> strokes = new SmartList<>();
    for (Shortcut shortcut : keymapManager.getActiveKeymap().getShortcuts(actionId)) {
      if (shortcut instanceof KeyboardShortcut) {
        strokes.add(((KeyboardShortcut)shortcut).getFirstKeyStroke());
      }
    }
    return strokes.toArray(new KeyStroke[0]);
  }
private static KeyStroke[] getKeyStrokes(String actionId, KeymapManager keymapManager)