ActivityTracker (@NotNull Supplier<@NotNull @NlsSafe String> debugMessageProducer) { if (disabledOutsideIntegrationTests) return dumbTracker; long keyNumber = keyNumberCounter.getAndIncrement(); synchronized (LOCK) { activities.put(keyNumber, debugMessageProducer); } return new MyActivityTracker(keyNumber); }