private static int getId() {
		for (int i = 0; i < Integer.MAX_VALUE; i++) {
			if (!USED_IDS.contains(i)) {
				USED_IDS.add(i);
				return i;
			}
		}
		return 0;
	}
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