private void truncateHistoryAsNeeded() {
		int historySize = history.size();

		if (historySize > maxHistory) {
			int numToRemove = historySize - maxHistory;

			for (int i = 0; i < numToRemove; i++) {
				history.remove(history.size() - 1);
			}
		}
	}
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