public void layoutsChanged(List<AnchoredLayout> layouts) {
		size = layouts.size();
		if (yPositions.length < size) {
			yPositions = new int[size];
		}
		int i = 0;
		base = layouts.isEmpty() ? BigInteger.ZERO : layouts.get(0).getIndex();
		for (AnchoredLayout l : layouts) {
			assert l.getIndex().subtract(base).intValueExact() == i;
			yPositions[i] = l.getYPos();
			i++;
		}
	}
An implementation of {@link LayoutPixelIndexMap} for vertical coordinates

<p>
This class implements {@link #getIndex(int)} in log time and {@link #getPixel(BigInteger)} in
constant time.
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/margin/VerticalLayoutPixelIndexMap.java