@Override
		public Component getListCellRendererComponent(JList<? extends ByteMatcher> list,
				ByteMatcher matcher, int index,
				boolean isSelected, boolean cellHasFocus) {

			super.getListCellRendererComponent(list, matcher, index, isSelected, cellHasFocus);

			Font font = getFont();
			int formatSize = Math.max(font.getSize() - 3, 6);
			SearchFormat format = matcher.getSettings().getSearchFormat();
			String formatHint = HTMLUtilities.setFontSize(format.getName(), formatSize);
			if (!isSelected) {
				formatHint = HTMLUtilities.colorString(Messages.HINT, formatHint);
			}

			setText("<html>" + matcher.getInput() + " <I>" + formatHint + "</I>");
			return this;
		}
Called before the user deletes some text.  If the result is valid, the super
method is called.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/gui/MemorySearchControlPanel.java