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