public static Data getDataAtLocation(ProgramLocation loc) {
		if (loc == null) {
			return null;
		}

		Address addr = loc.getAddress();
		Listing listing = loc.getProgram().getListing();
		Data dataContaining = listing.getDataContaining(addr);
		if (dataContaining == null) {
			return null;
		}

		Data dataAtAddr = dataContaining.getComponent(loc.getComponentPath());
		return dataAtAddr;
	}
Get the data for the given address; if the code unit at the address is
an instruction, return null.
@param loc the location. This provides the address and subcomponent
within the data at the address.
@return the data or null if the code unit at the address is an instruction.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/DataUtilities.java