private void removeSimilarMatchers(ByteMatcher matcher) {
		Iterator<ByteMatcher> it = history.iterator();
		String newInput = matcher.getInput();
		SearchFormat newFormat = matcher.getSettings().getSearchFormat();
		while (it.hasNext()) {
			ByteMatcher historyMatch = it.next();
			SearchFormat historyFormat = historyMatch.getSettings().getSearchFormat();
			String historyInput = historyMatch.getInput();
			if (historyFormat.equals(newFormat) && historyInput.equals(newInput)) {
				it.remove();
			}
		}
	}
Class for managing memory search history. It maintains a list of previously used ByteMatchers to
do memory searching. Each ByteMatcher records the input search text and the search settings used
to create it.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/gui/SearchHistory.java