void (long start, long end, @NonNls @NotNull String name, @NotNull ActivityCategory category, String pluginId) { if (!isEnabled) { return; } ActivityImpl item = new ActivityImpl(name, start, /* parent = */ null, pluginId, category); item.setEnd(end); items.add(item); }