private static Address getReferenceAddress(OperandFieldLocation location) {
		Address refAddress = location.getRefAddress();
		if (refAddress != null) {
			return refAddress;
		}

		VariableOffset variableOffset = location.getVariableOffset();
		if (variableOffset == null) {
			return null;
		}

		Variable variable = variableOffset.getVariable();
		refAddress = variable.getMinAddress();
		return refAddress;
	}
Gets the data that is contains the given address.
This is in contrast to {@link Listing#getDataContaining(Address)}, which returns
the outer-most data for an address.

@param addr the address potentially contained by some data
@param program the program
@return the data containing the address; null if no data contains the address
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/navigation/locationreferences/ReferenceUtils.java