boolean (@NotNull JComponent component, @NotNull MergeRequest request, @NotNull MergeContext context) { Couple<@Nls String> customMessage = DiffUtil.getUserData(request, context, DiffUserDataKeysEx.MERGE_CANCEL_MESSAGE); if (customMessage != null) { String title = customMessage.first; String message = customMessage.second; return MessageDialogBuilder.yesNo(title, message).ask(component); } return showConfirmDiscardChangesDialog(component, DiffBundle.message("button.cancel.merge"), true); }