private static void windowToString(Window w, int depth, StringBuilder buffy) {

		String title = getDebugTitleForWindow(w);
		String prefix = StringUtils.repeat('\t', depth);
		String visibility = w.isShowing() ? "" : " (not showing)";
		String padded = prefix + title + visibility;
		buffy.append(padded).append('\n');

		Window[] children = w.getOwnedWindows();
		for (Window child : children) {
			windowToString(child, depth + 1, buffy);
		}
	}
Returns a pretty-print string of all found windows that are showing, nesting by
parent-child relationship.

@return the result string
Ghidra/Framework/Docking/src/main/java/docking/test/AbstractDockingTest.java