private Address getAddressFromScalar(CodeUnit codeUnit, Scalar scalar) {
		Address minAddress = codeUnit.getMinAddress();
		Address address = null;
		try {
			address = minAddress.getNewAddress(scalar.getUnsignedValue(), true);
		}
		catch (Exception e) {
			// ignore
		}
		Program program = codeUnit.getProgram();
		if (address == null || !program.getMemory().contains(address)) {
			AddressSpace space = program.getAddressFactory().getDefaultAddressSpace();
			try {
				address = space.getAddress(scalar.getUnsignedValue(), true);
			}
			catch (Exception e) {
				// ignore
			}
		}
		return address;
	}
Navigate to the variable, when directly supplied by the field location

@param navigatable the navigatable to which we should navigate
@param loc the source location
@param goToService the GoTo service
@return true if we decide to attempt navigation
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/OperandFieldMouseHandler.java