private AddressRange adjustRangeForAlignment(AddressRange range) {
		if (getAlignment() == 1) {
			return range;
		}
		long offset = range.getMinAddress().getOffset();
		long mod = offset % getAlignment();
		if (mod == 0) {
			return range;
		}
		Address newStart = range.getMinAddress().getNewAddress(offset + getAlignment() - mod);
		return new AddressRangeImpl(newStart, range.getMaxAddress());
	}
Returns a new address set that is the intersection of the given set with the
desired memory block addresses (loaded or unloaded).
<p>
Note: This desired set of memory blocks is known by inspecting the 
{@link StringTableOptions#useLoadedBlocksOnly()} attribute set by the user. 

@param addressSet the address set to update
@param useLoadedBlocksOnly if true, only return addresses in loaded memory blocks
@return new the new address set
Ghidra/Features/Base/src/main/java/ghidra/program/util/string/AbstractStringSearcher.java