void (@NotNull ContentManagerEvent event) { if (event.getContent() == myContent && !myErrorsView.isProcessStopped() && !MessageDialogBuilder.yesNo(XmlBundle.message("xml.validate.validation.is.running.terminate.confirmation.title"), XmlBundle.message("xml.validate.validation.is.running.terminate.confirmation.text")) .ask(myProject)) { event.consume(); } }