private void recordReplace() {
			// Also record the search term.
			recordSearch();

			// Update replace input history.
			String replacement = replaceInput.getText();
			pastReplaces.remove(replacement);
			pastReplaces.add(0, replacement);
		}
Records the current {@link #replaceInput} text to {@link #pastReplaces}.
recaf-ui/src/main/java/software/coley/recaf/ui/control/richtext/search/SearchBar.java