private static void addShortcut(Keymap keymap, String actionId, Shortcut shortcut) {
    if (keymap instanceof KeymapImpl) {
      ((KeymapImpl)keymap).addShortcutFromSettings$intellij_platform_ide_impl(actionId, shortcut);
    }
    else {
      keymap.addShortcut(actionId, shortcut);
    }
  }
private static void addShortcut(Keymap keymap, String actionId, Shortcut shortcut)