boolean (@NotNull MergeRequest request) { MergeCallback callback = MergeCallback.getCallback(request); if (callback.checkIsValid()) { return true; } return MessageDialogBuilder .yesNo(DiffBundle.message("cancel.visual.merge.dialog.title"), DiffBundle.message("merge.conflict.is.outdated")) .yesText(CommonBundle.message("button.without.mnemonic.restore")) .noText(CommonBundle.message("button.without.mnemonic.do.nothing")) .guessWindowAndAsk(); }