void (@NotNull LibraryImpl fromModel) { if (myLibraryTable != null) { ApplicationManager.getApplication().assertWriteAccessAllowed(); } if (!Objects.equals(fromModel.myName, myName)) { String oldName = myName; myName = fromModel.myName; if (myLibraryTable instanceof LibraryTableBase) { ((LibraryTableBase)myLibraryTable).fireLibraryRenamed(this, oldName); } } myKind = fromModel.getKind(); myProperties = fromModel.myProperties; if (areRootsChanged(fromModel)) { disposeMyPointers(); copyRootsFrom(fromModel); fireRootSetChanged(); } }