private void runTask(ProgressIndicator progressIndicator, @Async.Execute Runnable task) {
    DumbService.getInstance(myProject).runReadActionInSmartMode(
      () -> ProgressManager.getInstance().executeProcessUnderProgress(task, progressIndicator)
    );
  }
private void runTask(ProgressIndicator progressIndicator, @Async.Execute Runnable task)