void () { final LibraryTable.ModifiableModel libraryTable = myContext.getModifiableLibraryTable(myLibrary.getTable()); if (libraryTable instanceof LibrariesModifiableModel) { for (String invalidRoot : myInvalidUrls) { final ExistingLibraryEditor libraryEditor = ((LibrariesModifiableModel)libraryTable).getLibraryEditor(myLibrary); libraryEditor.removeRoot(invalidRoot, myType); } myContext.getDaemonAnalyzer().queueUpdate(LibraryProjectStructureElement.this); final ProjectStructureConfigurable structureConfigurable = myContext.getModulesConfigurator().getProjectStructureConfigurable(); navigate().doWhenDone(() -> { final NamedConfigurable configurable = structureConfigurable.getConfigurableFor(myLibrary).getSelectedConfigurable(); if (configurable instanceof LibraryConfigurable) { ((LibraryConfigurable)configurable).updateComponent(); } }); } }