public static AddressRange toRange(Address min, Address max) {
		if (min.compareTo(max) > 0) {
			throw new IllegalArgumentException("min must precede max");
		}
		return new AddressRangeImpl(min, max);
	}
Create an address range, checking the endpoints

@param min the min address, which must be less than or equal to max
@param max the max address, which must be greater than or equal to min
@return the range
@throws IllegalArgumentException if max is less than min
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/DBTraceUtils.java