boolean (Object node, Object userData) { if (!(userData instanceof NodeDescriptor)) return false; if (getStructure().getChildElements(userData).length > 0) return false; userData = ((NodeDescriptor<?>)userData).getElement(); if (!project.isDefault() && DumbService.getInstance(project).isDumb() && !NewRunConfigurationTreePopupFactory.isEditableInDumbMode(userData)) { return false; } return isAutoSelectionPassed.get() || userData == selectedConfigurationType; }