void add(Object addObj) {
        if (contains(addObj)) {
            return;
        }
        Object[] bigArr;
        if (obj instanceof Object[]) {
            // generate bigger array, put old/new in it
            Object[] extArr = (Object []) obj;
            bigArr = new Object[extArr.length+1];
            System.arraycopy(extArr,0,bigArr,0,extArr.length);
            bigArr[extArr.length] = addObj;
        } else {
            bigArr = new Object[2];
            bigArr[0] = obj;
            bigArr[1] = addObj;
        }
        obj = bigArr;
    }
Removes a range from a object.

@param range the range being removed.
@param objID the id of the object it is being
removed from.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/address/AddressObjectMap.java