void () { if (mySourceElement instanceof LibraryProjectStructureElement) { myContext.getModulesConfigurator().getProjectStructureConfigurable().getModulesConfig() .removeLibraryOrderEntry(myModule, ((LibraryProjectStructureElement)mySourceElement).getLibrary()); } }