void (@NotNull String newName) { this.update( () -> myDirectoryName = newName, (builder, entity) -> { builder.modifyEntity(DirectoryPackagingElementEntity.Builder.class, entity, ent ->{ ent.setDirectoryName(newName); return Unit.INSTANCE; }); } ); }