public static void addCompletedActivity(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);
  }
public static void addCompletedActivity(long start,
                                          long end,
                                          @NonNls @NotNull String name,
                                          @NotNull ActivityCategory category,
                                          String pluginId)