private Highlight getHighlight(String text, int start, int end, Color color) {
		int charStart = getCharPosition(text, start);
		int charEnd = getCharPosition(text, end) + 1;
		return new Highlight(charStart, charEnd, color);

	}
Listing highlight provider to highlight memory search results.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/gui/MemoryMatchHighlighter.java