private JPanel buildOptionsPanel() {
		JPanel optionsPanel = new JPanel();
		optionsPanel.setLayout(new BoxLayout(optionsPanel, BoxLayout.LINE_AXIS));
		optionsPanel.setBorder(BorderFactory.createTitledBorder("Options"));

		optionsPanel.add(regexCb);
		optionsPanel.add(Box.createHorizontalGlue());
		optionsPanel.add(searchSelectionCb);

		return optionsPanel;
	}
A dialog to gather input for performing a search over decompiled text.
Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/plugin/core/search/DecompilerTextFinderDialog.java