private boolean hasInvalidSearchSettings() {
		Set<SearchRegion> selectedMemoryRegions = model.getSelectedMemoryRegions();
		if (selectedMemoryRegions.isEmpty()) {
			Msg.showInfo(getClass(), resultsPanel, "No Memory Regions Selected!",
				"You must select one or more memory regions to perform a search!");
			return true;
		}

		if (!(model.includeInstructions() ||
			model.includeDefinedData() ||
			model.includeUndefinedData())) {

			Msg.showInfo(getClass(), resultsPanel, "No Code Types Selected!",
				"You must select at least one of \"Instructions\"," +
					" \"Defined Data\" or \"Undefined Data\" to perform a search!");
			return true;

		}

		return false;
	}
ComponentProvider used to search memory and display search results.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/gui/MemorySearchProvider.java