void (List<? extends VFileEvent> events) { new Task.Backgroundable(myProject, VcsBundle.message("progress.title.version.control.processing.changed.files"), true) { @Override public void run(@NotNull ProgressIndicator indicator) { try { indicator.checkCanceled(); myProcessor.processAfterEvents(events); myProcessor.executePendingTasks(); } catch (ProcessCanceledException e) { myProcessor.clearAllPendingTasks(); } } }.queue(); }