@Override
	public boolean addAll(int index, Collection<? extends Long> c) {
		int newSize = size + c.size();
		long[] newValues = new long[newSize];
		System.arraycopy(longs, 0, newValues, 0, index);
		Iterator<? extends Long> it = c.iterator();
		int nextIndex = index;
		while (it.hasNext()) {
			newValues[nextIndex++] = it.next();
		}
		System.arraycopy(longs, index, newValues, nextIndex, size-index);
		longs = newValues;
		size = newSize;
		return true;
	}
Doubles the size of the array.
@param size The new capacity of the array.
Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/LongArrayList.java