private void printAddresses(AddressSet addressSet) throws CancelledException {

		AddressIterator addresses = addressSet.getAddresses(true);
		while (addresses.hasNext()) {
			monitor.checkCancelled();
			Address address = addresses.next();
			println(address.toString());
		}
	}
Method to search for the given byte array and print the address(es) where it is found
@param byteArray the given byte array
@throws CancelledException if cancelled
Ghidra/Features/Base/ghidra_scripts/SearchForImageBaseOffsetsScript.java