private void initializeOptions() {
		ToolOptions options = tool.getOptions(SearchConstants.SEARCH_OPTION_NAME);
		searchLimit = options.getInt(SEARCH_LIMIT_NAME, DEFAULT_SEARCH_LIMIT);

		searchOptionsListener = this::searchOptionsChanged;
		options.addOptionsChangeListener(searchOptionsListener);
	}
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