private JComponent buildMainPanel() {
		JPanel panel = new JPanel(new VerticalLayout(20));
		panel.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));
		panel.add(buildPatternsPanel());
		panel.add(buildOptionsPanel());
		panel.add(buildTypesPanel());
		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