private Data getComponentData(ProgramLocation location) {
		if (location == null) {
			return null;
		}
		Data data = DataUtilities.getDataAtLocation(location);

		if (data == null || data.getNumComponents() <= 0) {
			return null; // no expandable data at location
		}

		return data;
	}
Action for recursively expanding an expandable data element in the listing.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/codebrowser/actions/ExpandAllDataAction.java