private Component getWindow(Component component) {
		while (component != null && !(component instanceof Window)) {
			component = component.getParent();
		}
		return component;
	}
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