@Override
  public @NotNull ActivityImpl endAndStart(@NotNull String name) {
    end = System.nanoTime();
    StartUpMeasurer.addActivity(this);
    return new ActivityImpl(name, /* start = */end, parent, /* pluginId = */ pluginId, category);
  }
@Override
  public @NotNull ActivityImpl endAndStart(@NotNull String name)