private int findIndexAtOrGreater(List<MemoryMatch> matches, Address address) {

		MemoryMatch key = new MemoryMatch(address);
		int index = Collections.binarySearch(matches, key);
		if (index < 0) {
			index = -index - 1;
		}
		return index;
	}
Listing highlight provider to highlight memory search results.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/gui/MemoryMatchHighlighter.java