public AddressIterator getCommentAddressIterator(CommentType commentType, AddressSetView set,
			boolean forward) {
		if (set != null && set.isEmpty()) {
			return AddressIterator.EMPTY_ITERATOR;
		}
		try {
			AddressKeyIterator keyIter = commentAdapter.getKeys(set, forward);
			AddressIterator addrIter =
				new AddressKeyAddressIterator(keyIter, forward, addrMap, program);
			return new CommentTypeFilterAddressIterator(program, addrIter, commentType);
		}
		catch (IOException e) {
			program.dbError(e);
		}
		return new EmptyAddressIterator();
	}
Get a forward iterator over addresses that have comments of the given type.
@param commentType comment type defined in CodeUnit
@param set address set (null for all defined memory)
@param forward true to iterate in the direction of increasing addresses.
@return address iterator
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/CodeManager.java