private Address possiblyMergeWithNextRecord(Address endAddr, Field value) throws IOException {
		if (endAddr.equals(endAddr.getAddressSpace().getMaxAddress())) {
			// if the end is already the max, then no need to check for  follow-on record
			return endAddr;
		}
		Address next = endAddr.add(1);
		DBRecord record = rangeMapTable.getRecord(addressMap.getKey(next, false));
		if (record != null && getValue(record).equals(value)) {
			rangeMapTable.deleteRecord(record.getKey());
			return getEndAddress(record);
		}
		return endAddr;
	}
checks if there is a record just past our paint region that we can merge with. If we find
one, delete it and adjust our end address to its end address
@param endAddr the end of our paint region
@param value the value we are painting
@return the new end address for our paint
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/util/AddressRangeMapDB.java