void (@NotNull AnActionEvent e) { final LibraryProjectStructureElement element = (LibraryProjectStructureElement)myConfigurable.getSelectedElement(); if (element == null) return; final Library library = element.getLibrary(); ProjectStructureValidator.showDialogAndAddLibraryToDependencies(library, myConfigurable.getProjectStructureConfigurable(), false); }