private void dispose() {

		if (glassPaneMessage != null) {
			glassPaneMessage.hide();
			glassPaneMessage = null;
		}

		matchHighlighter.dispose();

		USED_IDS.remove(id);

		if (navigatable != null) {
			navigatable.removeNavigatableListener(this);
		}

		resultsPanel.dispose();
		tool.removeContextListener(this);
		program.removeCloseListener(this);
	}
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