void () { isEnabled = true; // initialize keyboard listener Toolkit.getDefaultToolkit().addAWTEventListener(ourAWTEventListener, ourEventMask); // initialize default and tool-window contexts CtxDefault.initialize(); CtxToolWindows.initialize(); // listen plugins ourConnection = ApplicationManager.getApplication().getMessageBus().simpleConnect(); ourConnection.subscribe(DynamicPluginListener.TOPIC, new DynamicPluginListener() { @Override public void pluginUnloaded(@NotNull IdeaPluginDescriptor pluginDescriptor, boolean isUpdate) { reloadAllActions(); } }); // add settings item CustomActionsSchema.addSettingsGroup(IdeActions.GROUP_TOUCHBAR, IdeBundle.message("settings.menus.group.touch.bar")); }