List<ConfigurationType> (DataContext dataContext) { Object[] items = dataContext.getData(PlatformCoreDataKeys.SELECTED_ITEMS); if (items == null) return Collections.emptyList(); List<ConfigurationType> types = new SmartList<>(); for (Object item : items) { if (item instanceof GroupingNode) { RunDashboardGroup group = ((GroupingNode)item).getGroup(); ConfigurationType type = ObjectUtils.tryCast(((RunDashboardGroupImpl<?>)group).getValue(), ConfigurationType.class); if (type != null) { types.add(type); continue; } } return Collections.emptyList(); } return types; }