private void moveCodeUnits(ProgramFragment fragment, CodeBlock block, TaskMonitor monitor)
			throws NotFoundException {

		AddressRangeIterator iter = block.getAddressRanges();
		while (iter.hasNext() && !monitor.isCancelled()) {
			AddressRange range = iter.next();
			fragment.move(range.getMinAddress(), range.getMaxAddress());
		}
	}
Method moveCodeUnits. Moves the code units into a Fragment

@param fragment the Fragment where the code units are moved to.
@param block the CodeBlock containing the code to be moved.
@param monitor the TaskMonitor to allow for cancelling.
@throws NotFoundException
Ghidra/Features/Base/src/main/java/ghidra/app/cmd/module/SubroutineModelCmd.java