void () { ApplicationManager.getApplication().invokeLater(() -> { if (myDisposed) return; if (!myNotificationPanel.isNull()) return; EditorNotificationPanel notification = new EditorNotificationPanel(LightColors.RED, EditorNotificationPanel.Status.Error); notification.setText(DiffBundle.message("error.conflict.is.not.valid.and.no.longer.can.be.resolved")); notification.createActionLabel(DiffBundle.message("button.abort.resolve"), () -> { applyRequestResult(MergeResult.CANCEL); closeDialog(); }); myNotificationPanel.setContent(notification); myMainPanel.validate(); myMainPanel.repaint(); }, ModalityState.stateForComponent(myPanel)); }