protected int computeOff(int pixel) {
		int result = Arrays.binarySearch(yPositions, 0, size, pixel);
		if (result >= 0) {
			return result;
		}
		// result = -insertionPoint - 1, first index where acc[index] > pixel
		// want index = insertionPoint - 1, index where acc[index] < pixel < acc[index+1]
		// insertionPoint = -result - 1
		// index = -result - 2;
		return -result - 2;
	}
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