private void searchOptionsChanged(ToolOptions options, String optionName, Object oldValue,
			Object newValue) {

		if (optionName.equals(SEARCH_LIMIT_NAME)) {
			int limit = (int) newValue;
			if (limit <= 0) {
				throw new OptionsVetoException("Search limit must be greater than 0");
			}
			searchLimit = limit;
			if (cachedDialog != null) {
				cachedDialog.setSearchLimit(limit);
			}
		}
	}
Plugin to perform search and replace operations for many different program element types such
as labels, functions, classes, datatypes, memory blocks, and more.
Ghidra/Features/Base/src/main/java/ghidra/features/base/replace/SearchAndReplacePlugin.java