public static String getTitle(Window w) {
		if (w == null) {
			return null;
		}

		if (w instanceof Frame) {
			return ((Frame) w).getTitle();
		}
		else if (w instanceof Dialog) {
			return ((Dialog) w).getTitle();
		}
		return null;
	}
Returns the title for the given window
@param w the window
@return the title
Ghidra/Framework/Generic/src/main/java/generic/util/WindowUtilities.java