void (@NotNull final CoverageSuitesBundle suite, @NotNull final CoverageDataManager dataManager) { final Runnable request = createRenewRequest(suite, dataManager); if (request != null) { if (myProject.isDisposed()) return; final Project project = myProject; ProgressManager.getInstance().run(new Task.Backgroundable(project, CoverageBundle.message("coverage.view.loading.data"), true) { @Override public void run(@NotNull ProgressIndicator indicator) { request.run(); } @Override public void onSuccess() { if (project.isDisposed()) return; dataManager.coverageDataCalculated(suite); } @Override public void onCancel() { super.onCancel(); if (project.isDisposed()) return; dataManager.closeSuitesBundle(suite); } }); } }