private JComponent buildCodeUnitScopePanel() {
		JPanel panel = new JPanel(new VerticalLayout(5));
		panel.setBorder(createBorder("Code Type Filter"));
		GCheckBox instructionsCheckBox = new GCheckBox("Instructions");
		GCheckBox definedDataCheckBox = new GCheckBox("Defined Data");
		GCheckBox undefinedDataCheckBox = new GCheckBox("Undefined Data");
		instructionsCheckBox.setToolTipText(
			"If selected, include matches found in instructions");
		definedDataCheckBox.setToolTipText(
			"If selected, include matches found in defined data");
		undefinedDataCheckBox.setToolTipText(
			"If selected, include matches found in undefined data");
		instructionsCheckBox.setSelected(model.includeInstructions());
		definedDataCheckBox.setSelected(model.includeDefinedData());
		undefinedDataCheckBox.setSelected(model.includeUndefinedData());
		instructionsCheckBox.addActionListener(
			e -> model.setIncludeInstructions(instructionsCheckBox.isSelected()));
		definedDataCheckBox.addActionListener(
			e -> model.setIncludeDefinedData(definedDataCheckBox.isSelected()));
		undefinedDataCheckBox.addActionListener(
			e -> model.setIncludeUndefinedData(undefinedDataCheckBox.isSelected()));
		panel.add(instructionsCheckBox);
		panel.add(definedDataCheckBox);
		panel.add(undefinedDataCheckBox);
		return panel;
	}
Internal panel of the memory search window that manages the controls for the search settings.
This panel can be added or removed via a toolbar action. Not showing by default.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/gui/MemorySearchOptionsPanel.java