@Override
	public int compare(Object obj1, Object obj2) {
        if(obj1 instanceof AddressRange) {
            return ((AddressRange) obj1).compareTo((Address) obj2);
        }
        return -((AddressRange) obj2).compareTo((Address) obj1);
    }
Compares an address against an AddressRange.
@param obj1 the first object to compare. Must be an address or an address range.
@param obj2 the second object to compare. Must be an address or an address range.

@return a negative integer, zero, or a positive integer
 if the first argument is less than, equal to, or greater than the second.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/address/AddressRangeToAddressComparator.java