public void getComments(Address addr, int types, Encoder resultEncoder) throws IOException {
		Function func = getFunctionAt(addr);
		if (func == null) {
			return;
		}
		encodeComments(resultEncoder, addr, func, types);
		if (debug != null) {
			XmlEncode xmlEncode = new XmlEncode();
			encodeComments(xmlEncode, addr, func, types);
			debug.getComments(xmlEncode.toString());
		}
	}
Collect any/all comments for the function starting at the indicated
address.  Filter based on selected comment types.

@param addr is the indicated address
@param types is the set of flags
@param resultEncoder will contain the collected comments
@throws IOException for errors in the underlying stream
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileCallback.java