RunDashboardRunConfigurationNode (@NotNull DnDEvent event, @NotNull Project project) { Object object = event.getAttachedObject(); if (!(object instanceof DataProvider)) return null; Object data = ((DataProvider)object).getData(PlatformCoreDataKeys.SELECTED_ITEMS.getName()); if (!(data instanceof Object[] items)) return null; if (items.length != 1) return null; RunDashboardRunConfigurationNode node = ObjectUtils.tryCast(items[0], RunDashboardRunConfigurationNode.class); if (node != null && !node.getConfigurationSettings().getConfiguration().getProject().equals(project)) return null; return node; }