void (@NotNull AnActionEvent e) { Project project = getProject(e); assert project != null; ExternalSystemActionsCollector.trigger(project, getSystemId(e), this, e); final List<ExternalSystemNode> selectedNodes = e.getData(ExternalSystemDataKeys.SELECTED_NODES); if (selectedNodes == null || selectedNodes.size() != 1 || !(selectedNodes.get(0) instanceof RunConfigurationNode)) return; RunnerAndConfigurationSettings settings = ((RunConfigurationNode)selectedNodes.get(0)).getSettings(); assert settings != null; ExternalSystemRunConfiguration runConfiguration = (ExternalSystemRunConfiguration)settings.getConfiguration(); String actionIdPrefix = getActionPrefix(project, runConfiguration.getSettings().getExternalProjectPath()); String actionId = actionIdPrefix + settings.getName(); AnAction action = ActionManager.getInstance().getAction(actionId); if (action == null) { ExternalSystemKeymapExtension.getOrRegisterAction(project, settings); } new EditKeymapsDialog(project, actionId).show(); }