void (@NotNull ProgressIndicator indicator) { try { List<Change> preprocessed = ChangesPreprocess.preprocessChangesRemoveDeletedForDuplicateMoved(changesList); List<FilePatch> patches = IdeaTextPatchBuilder.buildPatch(project, preprocessed, baseDir.toNioPath(), myReverse, false); new PatchApplier(project, baseDir, new ArrayList<>(patches), targetList, null).execute(); } catch (final VcsException ex) { WaitForProgressToShow.runOrInvokeLaterAboveProgress(() -> { Messages.showErrorDialog(project, errorPrefix + ex.getMessage(), title); }, null, project); indicator.cancel(); } }