void (String libraryName) { this.update( () -> myLibraryName = libraryName, (builder, entity) -> { builder.modifyEntity(LibraryFilesPackagingElementEntity.Builder.class, entity, ent -> { LibraryId libraryId = ent.getLibrary(); if (libraryId != null) { ent.setLibrary(libraryId.copy(libraryName, libraryId.getTableId())); } return Unit.INSTANCE; }); } ); }