public static void dumpThreads(@Nullable Project project) {
    ApplicationManager.getApplication().executeOnPooledThread(() -> {
      Path dumpDir = PerformanceWatcher.getInstance().dumpThreads("", false, false);
      Notification notification = createNotification(dumpDir);
      notification.notify(project);
    });
  }
public static void dumpThreads(@Nullable Project project)