ID (@NotNull String uid) { // called from AppKit (when NSTouchBarDelegate create items) final long startNs = myStats != null ? System.nanoTime() : 0; final ID result = createItemImpl(uid); if (myStats != null) { myStats.incrementCounter(StatsCounters.itemsCreationDurationNs, System.nanoTime() - startNs); } return result; }