@Override
	public CodeBlockReferenceIterator getDestinations(CodeBlock block, TaskMonitor monitor)
			throws CancelledException {

		if (!(block.getModel() instanceof PartitionCodeSubModel)) {
			throw new IllegalArgumentException();
		}

		return new SubroutineDestReferenceIterator(block, monitor);
	}
Get an iterator over destination blocks flowing from this block.

@param block code block to get the destination block iterator for.
@param monitor task monitor which allows user to cancel operation.
@throws CancelledException if the monitor cancels the operation.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/block/PartitionCodeSubModel.java