private static Dialog findYoungestChildDialogOfParentDialog(Dialog parentDialog,
			List<Dialog> openModalDialogs) {

		if (parentDialog == null) {
			return null;
		}

		for (Dialog potentialChildDialog : openModalDialogs) {
			if (parentDialog == potentialChildDialog) {
				continue;
			}
			if (SwingUtilities.isDescendingFrom(potentialChildDialog, parentDialog)) {
				return findYoungestChildDialogOfParentDialog(potentialChildDialog,
					openModalDialogs);
			}
		}
		return parentDialog;
	}
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