private static List<Dialog> getOpenModalDialogs() {
		Frame[] frames = Frame.getFrames();
		List<Dialog> openModalDialogs = new ArrayList<>();
		for (Frame nextFrame : frames) {
			getOpenModalDialogChildren(nextFrame, openModalDialogs);
		}

		return 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