private SearchAndReplaceQuery createQuery() {
		String searchText = searchTextComboBox.getText().trim();
		String replacePattern = replaceTextComboBox.getText().trim();
		boolean isRegEx = regexCheckbox.isSelected();
		boolean isCaseSensitive = caseSensitiveCheckbox.isSelected();
		boolean isWholeWord = wholeWordCheckbox.isSelected();
		Set<SearchType> searchTypes = getSelectedSearchTypes();
		try {
			return new SearchAndReplaceQuery(searchText, replacePattern, searchTypes, isRegEx,
				isCaseSensitive, isWholeWord, searchLimit);
		}
		catch (PatternSyntaxException e) {
			return null;
		}
	}
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