private JComponent buildOptionsPanel() {
		regexCheckbox = new JCheckBox("Regular expression");
		caseSensitiveCheckbox = new JCheckBox("Case sensitive");
		wholeWordCheckbox = new JCheckBox("Whole word");

		regexCheckbox.addActionListener(e -> regExCheckboxChanged());

		regexCheckbox.setToolTipText("Interprets search and replace text as regular expressions");
		caseSensitiveCheckbox.setToolTipText("Determines if search text is case sensitive");
		wholeWordCheckbox.setToolTipText("Sets if the input pattern must match whole words. For" +
			" names, this means the entire name. For comments, it means matching entire words.");

		JPanel panel = new JPanel(new HorizontalLayout(10));
		Border titleBorder = BorderFactory.createTitledBorder("Options:");
		Border innerBorder = BorderFactory.createEmptyBorder(5, 5, 5, 5);
		panel.setBorder(BorderFactory.createCompoundBorder(titleBorder, innerBorder));
		panel.add(regexCheckbox);
		panel.add(caseSensitiveCheckbox);
		panel.add(wholeWordCheckbox);
		return panel;
	}
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