public void optionsChanged(DecompileOptions decompilerOptions) {
		setBackground(decompilerOptions.getBackgroundColor());
		currentVariableHighlightColor = options.getCurrentVariableHighlightColor();
		middleMouseHighlightColor = decompilerOptions.getMiddleMouseHighlightColor();
		middleMouseHighlightButton = decompilerOptions.getMiddleMouseHighlightButton();
		searchHighlightColor = decompilerOptions.getSearchHighlightColor();

		highlightController.setHighlightColor(currentVariableHighlightColor);

		if (options.isDisplayLineNumbers()) {
			if (lineNumbersMargin == null) {
				addMarginProvider(lineNumbersMargin = new LineNumberDecompilerMarginProvider());
			}
		}
		else {
			if (lineNumbersMargin != null) {
				removeMarginProvider(lineNumbersMargin);
				lineNumbersMargin = null;
			}
		}

		for (DecompilerMarginProvider element : marginProviders) {
			element.setOptions(options);
		}
	}
Get the line number for the given y position, relative to the scroll panel

<p>
If the y position is below all the lines, the last line is returned.

@param y the y position
@return the line number, or 0 if not applicable
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/DecompilerPanel.java