private void toggleShowOptions() {
		plugin.setShowOptionsPanel(toggleOptionsPanelAction.isSelected());
		if (toggleOptionsPanelAction.isSelected()) {
			mainComponent.add(optionsPanel, BorderLayout.EAST);
		}
		else {
			mainComponent.remove(optionsPanel);
		}
		mainComponent.validate();
	}
Performs a scan on the current results, keeping only the results that match the type of scan.
Note: this method is public to facilitate testing.

@param scanner the scanner to use to reduce the results.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/gui/MemorySearchProvider.java