void (final @NotNull AWTEvent event, final long finishedAtMs) { if (this.awtEventExecutionStartedNs <= 0) { return;// missed call to .edtEventStarted() } final long awtEventExecutionDurationNs = System.nanoTime() - this.awtEventExecutionStartedNs; if (awtEventExecutionDurationNs > HOURS.toNanos(1)) { return;// _likely_ missed call to .edtEventStarted() } awtEventDispatchTimeHistogram.recordValue(awtEventExecutionDurationNs); awtTotalTimeNs.add(awtEventExecutionDurationNs); }