private boolean indexIsInCurrentLine(BigInteger layoutIndex) {
			Field currentField = getCurrentField();
			if (!(currentField instanceof ByteField)) {
				// empty field
				return false;
			}

			ByteField currentByteField = (ByteField) currentField;
			BigInteger currentIndex = currentByteField.getIndex();
			Layout layout = layoutModel.getLayout(layoutIndex);
			int n = layout.getNumFields();
			for (int i = 0; i < n; i++) {
				Field field = layout.getField(i);
				if (!(field instanceof ByteField)) {
					continue;
				}

				ByteField byteField = (ByteField) field;
				BigInteger fieldLayoutIndex = byteField.getIndex();
				if (fieldLayoutIndex.equals(currentIndex)) {
					return true;
				}
			}

			return false;
		}
Translates a screen/view selection into a byte block model selection
@param fieldSelection a {@link FieldPanel} selection
@return a {@link ByteBlockSelection}
Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/byteviewer/ByteViewerComponent.java