void (@NotNull ContentManagerEvent event) { if (event.getContent() == myContent && myErrorsView != null && myErrorsView.canControlProcess() && !myErrorsView.isProcessStopped()) { if (!MessageDialogBuilder.yesNo(RelaxngBundle.message("relaxng.message-viewer.warning.message", myContentName), RelaxngBundle.message("relaxng.message-viewer.warning.title", myContentName)) .ask(myErrorsView)) { event.consume(); } } }