@Override
	public void remove() {
		if (lastReturnedIndex == -1) {
			throw new IllegalStateException();
		}
		list.remove(lastReturnedIndex);
		if (nextIndex > lastReturnedIndex) {
			nextIndex--;
		}
		lastReturnedIndex = -1;
	}
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