void (@NotNull Logger logger) { mySpan.end(); String message = myOperation + " took " + formatTime(System.currentTimeMillis() - myStartTime); if (myDurationPerRoot.size() > 1) { message += "\n" + StringUtil.join(myDurationPerRoot.entrySet(), entry -> " " + entry.getKey().getName() + ": " + formatTime(entry.getValue()), "\n"); } logger.debug(message); }