boolean (@NotNull String operationName, final @NotNull String rollbackProposal) { final AtomicBoolean ok = new AtomicBoolean(); ApplicationManager.getApplication().invokeAndWait(() -> { String description = XmlStringUtil.wrapInHtml( GitBundle.message("branch.ui.handler.you.have.to.resolve.all.conflicts.before.operation.name", operationName, rollbackProposal)); // suppressing: this message looks ugly if capitalized by words ok.set(YES == DialogManager.showOkCancelDialog(myProject, description, unmergedFilesErrorTitle(operationName), GitBundle.message("branch.ui.handler.rollback"), GitBundle.message("branch.ui.handler.do.not.rollback"), Messages.getErrorIcon())); }); return ok.get(); }