boolean (String eventDescription) { if (!eventDescription.startsWith(MessageReporter.MODEL_BUILDER_SERVICE_MESSAGE_PREFIX)) { return false; } try { Message message = new GsonBuilder().create() .fromJson(StringUtil.substringAfter(eventDescription, MessageReporter.MODEL_BUILDER_SERVICE_MESSAGE_PREFIX), Message.class); MessageEvent messageEvent = getModelBuilderMessage(message); GradleModelBuilderMessageCollector.logModelBuilderMessage(myTaskId.findProject(), myTaskId.getId(), message); myListener.onStatusChange(new ExternalSystemBuildEvent(myTaskId, messageEvent)); return true; } catch (Exception e) { LOG.warn("Failed to report model builder message using event '" + eventDescription + "'", e); } return false; }