public static String getMessageText(Window w) {
		Component c = findComponentByName(w, OptionDialog.MESSAGE_COMPONENT_NAME);
		if (c instanceof JLabel) {
			return ((JLabel) c).getText();
		}
		else if (c instanceof MultiLineLabel) {
			return ((MultiLineLabel) c).getLabel();
		}
		return null;
	}
Check for and display message component text associated with OptionDialog windows
@param w any window
@return the message string if one can be found; <code>null</code> otherwise
Ghidra/Framework/Docking/src/main/java/docking/test/AbstractDockingTest.java