diff --git a/platform/vcs-impl/src/com/intellij/openapi/diff/impl/patch/formove/PatchApplier.java b/platform/vcs-impl/src/com/intellij/openapi/diff/impl/patch/formove/PatchApplier.java index 412923e122e5..73908eebef25 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/diff/impl/patch/formove/PatchApplier.java +++ b/platform/vcs-impl/src/com/intellij/openapi/diff/impl/patch/formove/PatchApplier.java @@ -566,9 +566,8 @@ public class PatchApplier { if (application.isUnitTestMode()) { return; } - final String title = VcsBundle.message("patch.apply.dialog.title"); - final Runnable messageShower = () -> Messages.showErrorDialog(project, message, title); - WaitForProgressToShow.runOrInvokeLaterAboveProgress(() -> messageShower.run(), null, project); + WaitForProgressToShow.runOrInvokeLaterAboveProgress( + () -> Messages.showErrorDialog(project, message, VcsBundle.message("patch.apply.dialog.title")), null, project); } private static class FilesMover implements Consumer> {