void (MouseEvent e) { SelectMavenGoalDialog dialog = new SelectMavenGoalDialog(project); if (dialog.showAndGet() && dialog.getResult() != null) { var goalNode = dialog.getResult(); String goal = goalNode.getGoal(); String actionId = MavenShortcutsManager.getInstance(project).getActionId(goalNode.getProjectPath(), goal); getOrRegisterAction(goalNode.getMavenProject(), actionId, goal); ApplicationManager.getApplication().getMessageBus().syncPublisher(KeymapListener.CHANGE_TOPIC).processCurrentKeymapChanged(); Settings allSettings = Settings.KEY.getData(DataManager.getInstance().getDataContext(e.getComponent())); KeymapPanel keymapPanel = allSettings != null ? allSettings.find(KeymapPanel.class) : null; if (keymapPanel != null) { // clear actions filter keymapPanel.showOption(""); keymapPanel.selectAction(actionId); } } }