boolean (@NotNull PackagingElement<?> element) { if (!(element instanceof LibraryPackagingElement packagingElement)) { return false; } String level; String libraryName; String moduleName; if (myStorage == null) { level = myLevel; libraryName = myLibraryName; moduleName = myModuleName; } else { LibraryFilesPackagingElementEntity entity = (LibraryFilesPackagingElementEntity)getThisEntity(); level = getMyLevel(entity); libraryName = getMyLibraryName(entity); moduleName = getMyModuleName(entity); } return level != null && libraryName != null && level.equals(packagingElement.getLevel()) && libraryName.equals(packagingElement.getLibraryName()) && Objects.equals(moduleName, packagingElement.getModuleName()); }