void (@NotNull DefaultProject project, @NotNull Message message) { ProgressLoggerFactory progressLoggerFactory = project.getServices().get(ProgressLoggerFactory.class); ProgressLogger operation = progressLoggerFactory.newOperation(ModelBuilderService.class); String jsonMessage = new GsonBuilder().create().toJson(message); operation.setDescription(MODEL_BUILDER_SERVICE_MESSAGE_PREFIX + jsonMessage); operation.started(); operation.completed(); }