void (ProgressEvent event) { if (myDownloadProgressMapper.canMap(event)) { ExternalSystemTaskNotificationEvent downloadEvent = myDownloadProgressMapper.map(myTaskId, event); if (downloadEvent != null) { myListener.onStatusChange(downloadEvent); if (sendProgressEventsToOutput) { sendProgressEventToOutput(downloadEvent); } return; } } ExternalSystemTaskNotificationEvent progressBuildEvent = myProgressMapper.map(myTaskId, event); if (progressBuildEvent != null) { if (!progressBuildEvent.equals(myLastStatusChange)) { myListener.onStatusChange(progressBuildEvent); myLastStatusChange = progressBuildEvent; } } var taskNotificationEvent = GradleProgressEventConverter.createTaskNotificationEvent(myTaskId, myOperationId, event); if (taskNotificationEvent != null) { myListener.onStatusChange(taskNotificationEvent); } }