RunDashboardGroup (AbstractTreeNode<?> node) { if (node instanceof RunDashboardRunConfigurationNode) { RunnerAndConfigurationSettings configurationSettings = ((RunDashboardRunConfigurationNode)node).getConfigurationSettings(); String folderName = configurationSettings.getFolderName(); if (folderName != null) { return new FolderDashboardGroup(node.getProject(), folderName, folderName, AllIcons.Nodes.Folder); } } return null; }