private static Set<SearchRegion> createRegionSet(Set<SearchRegion> regions,
			SearchRegion region, boolean select) {
		Set<SearchRegion> set = new HashSet<>(regions);
		if (select) {
			set.add(region);
		}
		else {
			set.remove(region);
		}
		return set;
	}
Creates a copy of this settings object, but using the given search format.
@param format the new search format
@return a new search settings that is the same as this settings except for the format
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/gui/SearchSettings.java