public long getLongValue(int index) {
    	if (index < 0 || index >= size) {
			throw new IndexOutOfBoundsException(
				"Invalid index %d for list of size %d".formatted(index, size));
    	}
        return longs[index];
    }
@see java.util.List#add(int, java.lang.Object)
Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/LongArrayList.java