private static Dialog pickAModalDialog(List<Dialog> openModalDialogs) {
		// We can just guess here.  We shall use the last one in the list, as usually the most
		// recent dialogs are at the end of Window's owned window list (this can be bad if
		// modal dialogs are reused).
		Dialog dialog = openModalDialogs.get(openModalDialogs.size() - 1);
		return findYoungestChildDialogOfParentDialog(dialog, openModalDialogs);
	}
Returns a list of all <code>parent</code>'s descendant modal dialogs.

@param parent the parent for which to find modal dialogs
@return a list of all <code>parent</code>'s descendant modal dialogs.
Ghidra/Framework/Generic/src/main/java/generic/util/WindowUtilities.java