JBIterable<RunDashboardRunConfigurationNode> (@NotNull AnActionEvent e) { Project project = e.getProject(); if (project == null) return JBIterable.empty(); JBIterable<Object> roots = JBIterable.of(e.getData(PlatformCoreDataKeys.SELECTED_ITEMS)); Set<RunDashboardRunConfigurationNode> result = new LinkedHashSet<>(); if (!getLeaves(project, e, roots.toList(), Collections.emptyList(), result)) return JBIterable.empty(); return JBIterable.from(result); }