private boolean isSameOperandType(Address addr1, Address addr2) {

		Function function1 = sourceProgram.getFunctionManager().getFunctionAt(addr1);
		if (function1 != null) {
			Function function2 = destinationProgram.getFunctionManager().getFunctionAt(addr2);
			if (function2 != null) {
				return true;
			}
			else {
				return false;
			}
		}

		Data data1 = sourceProgram.getListing().getDataAt(addr1);
		if (data1 != null && data1.isDefined()) {
			Data data2 = destinationProgram.getListing().getDataAt(addr2);
			if (data2 == null) {
				return false;
			}
			if (!data2.isDefined()) {
				return false;
			}

			if (data1.getDataType().getName().equals(data2.getDataType().getName())) {
				return true;
			}
		}
		return false;
	}
Method to check to see if both addresses have functions at them or the same data type at them
@param addr1 the first Address
@param addr2 the second Address
@return
Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/actions/AutoVersionTrackingTask.java