void (@NotNull AnActionEvent e) { Project project = e.getProject(); if (project == null) return; List<RunDashboardRunConfigurationNode> nodes = getTargets(e); RunDashboardRunConfigurationNode firstNode = ContainerUtil.getFirstItem(nodes); String initialValue = firstNode != null ? firstNode.getConfigurationSettings().getFolderName() : null; String value = Messages.showInputDialog(project, ExecutionBundle.message("run.dashboard.group.configurations.label"), ExecutionBundle.message("run.dashboard.group.configurations.title"), null, initialValue, null); if (value == null) return; String groupName = value.isEmpty() ? null : value; // If input value is empty then ungroup nodes. final RunManagerImpl runManager = RunManagerImpl.getInstanceImpl(project); runManager.fireBeginUpdate(); try { nodes.forEach(node -> node.getConfigurationSettings().setFolderName(groupName)); } finally { runManager.fireEndUpdate(); } }