void (String eventDescription) { if (StringUtil.equals(STARTING_GRADLE_DAEMON_EVENT, eventDescription)) { long eventTime = System.currentTimeMillis(); Long startTime = myStatusEventIds.remove(eventDescription); if (startTime == null) { myListener.onTaskOutput(myTaskId, STARTING_GRADLE_DAEMON_EVENT + "...\n", true); myStatusEventIds.put(eventDescription, eventTime); } else { String duration = formatDuration(eventTime - startTime); myListener.onTaskOutput(myTaskId, "\rGradle Daemon started in " + duration + "\n", true); } } }