public BigInteger getMaxIndex(Address addr) {
		int rangeIndex = Arrays.binarySearch(addressList, addr);
		if (rangeIndex < 0) {
			rangeIndex = -rangeIndex - 2;
		}
		if (rangeIndex < 0) {
			return null;
		}
		return indexList[rangeIndex + 1].subtract(BigInteger.ONE);

	}
Returns the maximum address for the range containing the given address.

@param addr the address to find its containing range's max address.
@return  the maximum address for the range containing the given address.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/util/AddressIndexMap.java