void (@NotNull DefaultActionGroup group, @NotNull KeymapManagerEx manager, @Nullable Keymap current, @NotNull Keymap keymap) { group.add(new DumbAwareAction(keymap.getPresentableName(), "", keymap == current ? AllIcons.Actions.Forward : ourNotCurrentAction) { @Override public void actionPerformed(@NotNull AnActionEvent e) { manager.setActiveKeymap(keymap); } }); }