void (@NotNull AnActionEvent e) { final HgMqUnAppliedPatchesPanel patchInfo = e.getRequiredData(HgMqUnAppliedPatchesPanel.MQ_PATCHES); final List<String> names = patchInfo.getSelectedPatchNames(); final HgRepository repository = patchInfo.getRepository(); Runnable task = () -> { ProgressManager.getInstance().getProgressIndicator().setText(getTitle()); executeInCurrentThread(repository, names); }; patchInfo.updatePatchSeriesInBackground(task); }