private void updateControlPanel() {
		controlPanel.removeAll();
		boolean showSearchPanel = toggleSearchPanelAction.isSelected();
		boolean showScanPanel = toggleScanPanelAction.isSelected();

		if (showSearchPanel) {
			controlPanel.add(searchPanel);
		}
		if (showSearchPanel && showScanPanel) {
			controlPanel.add(new JSeparator());
		}
		if (showScanPanel) {
			controlPanel.add(scanPanel);
		}
		controlPanel.revalidate();
	}
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