private void doDisplayMessage(MessageType messageType, ErrorLogger errorLogger,
			Object originator, Component parent, String title, Object message,
			Throwable throwable) {

		int dialogType = OptionDialog.PLAIN_MESSAGE;

		String cleanMessage = cleanupMessage(message);

		String unformattedMessage = HTMLUtilities.fromHTML(cleanMessage);
		switch (messageType) {
			case INFO:
				dialogType = OptionDialog.INFORMATION_MESSAGE;
				consoleDisplay.displayInfoMessage(errorLogger, originator, parent, title,
					unformattedMessage);
				break;
			case WARNING:
			case ALERT:
				dialogType = OptionDialog.WARNING_MESSAGE;
				consoleDisplay.displayWarningMessage(errorLogger, originator, parent, title,
					unformattedMessage, throwable);
				break;
			case ERROR:
				consoleDisplay.displayErrorMessage(errorLogger, originator, parent, title,
					unformattedMessage, throwable);
				dialogType = OptionDialog.ERROR_MESSAGE;
				break;
		}

		showDialog(title, throwable, dialogType, cleanMessage, getWindow(parent));
	}
Error dialog used to append exceptions.

<p>While this dialog is showing all new exceptions will be added to the dialog.  When
this dialog is closed, this reference will be cleared.

<p>Note: all use of this variable <b>must be on the Swing thread</b> to avoid thread
visibility issues.
Ghidra/Framework/Docking/src/main/java/docking/DockingErrorDisplay.java