long (long start, @NonNls @NotNull String name, @NotNull ActivityCategory category, String pluginId) { long end = System.nanoTime(); long duration = end - start; if (duration <= MEASURE_THRESHOLD) { return duration; } addCompletedActivity(start, end, name, category, pluginId); return duration; }