void (CompileContext context) { myElapsedTimeNanosByBuilder.entrySet() .stream() .map(entry -> { AtomicInteger processedSourcesRef = myNumberOfSourcesProcessedByBuilder.get(entry.getKey()); int processedSources = processedSourcesRef != null ? processedSourcesRef.get() : 0; return new BuilderStatisticsMessage(entry.getKey().getPresentableName(), processedSources, entry.getValue().get()/1_000_000); }) .sorted(Comparator.comparing(BuilderStatisticsMessage::getBuilderName)) .forEach(context::processMessage); }