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