void (@NotNull Project project, @NotNull Consumer<? super IndexingTestEntity.Builder> modification) { editWorkspaceModel(project, builder -> { IndexingTestEntity existingEntity = SequencesKt.first(builder.entities(IndexingTestEntity.class)); builder.modifyEntity(IndexingTestEntity.Builder.class, existingEntity, entityBuilder -> { modification.accept(entityBuilder); return Unit.INSTANCE; }); }); }