private void updateHistory(GhidraComboBox<String> combo) {
		String value = combo.getText();
		if (value.isBlank()) {
			return;
		}
		DefaultComboBoxModel<String> model =
			(DefaultComboBoxModel<String>) combo.getModel();
		model.removeElement(value);
		if (model.getSize() > MAX_HISTORY) {
			model.removeElementAt(model.getSize() - 1);
		}
		model.insertElementAt(value, 0);
		model.setSelectedItem(value);
	}
Returns the query generated by the dialog when the "Ok" button is pressed or null if the
dialog was cancelled.
@return the SearchAndReplaceQuery generated by the information in the dialog when the 
"Ok" button is pressed, or null if the dialog was cancelled.
Ghidra/Features/Base/src/main/java/ghidra/features/base/replace/SearchAndReplaceDialog.java