private Data getParent(Data data) {
		Data parent = data.getParent();
		if (parent == null) {
			return data;
		}

		Data nextParent = getParent(parent);
		if (nextParent != null) {
			return nextParent;
		}
		return data;
	}
A location descriptor to find references to a Union data type.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/navigation/locationreferences/UnionLocationDescriptor.java