void () { LibraryEditor libraryEditor = getLibraryEditor(); ProjectModelExternalSource externalSource = libraryEditor.getExternalSource(); if (externalSource != null && hasChanges()) { String name = libraryEditor instanceof ExistingLibraryEditor ? ((ExistingLibraryEditor)libraryEditor).getLibrary().getName() : libraryEditor.getName(); final String description; if (name != null) { description = JavaUiBundle.message("library.0", name); } else { description = JavaUiBundle.message("configurable.library.prefix"); } myModificationOfImportedModelWarningComponent.showWarning(description, externalSource); } else { myModificationOfImportedModelWarningComponent.hideWarning(); } }