@Override
		public void caretUpdate(CaretEvent e) {
			int pos = e.getDot();
			if (isUpdatingCaretInternally) {
				lastPos = pos;
				return;
			}

			if (pos == lastPos) {
				return;
			}
			lastPos = pos;
			caretUpdater.update();
		}
Makes this match active and updates the highlight color
@param b true for active
Ghidra/Framework/Docking/src/main/java/docking/widgets/TextComponentSearcher.java