public void writeContents(LinkDatabase linkDatabase, PrintWriter writer, int indentLevel) {
		// if I have no children, then just write out a simple tag
		if (children.size() == 0) {
			writer.println(generateTOCItemTag(linkDatabase, true, indentLevel));
		}

		// otherwise, write out my opening tag, my children's data and then my closing tag
		else {
			writer.println(generateTOCItemTag(linkDatabase, false, indentLevel));
			int nextIndentLevel = indentLevel + 1;
			for (TOCItem item : children) {
				item.writeContents(linkDatabase, writer, nextIndentLevel);
			}
			writer.println(INDENTS[indentLevel] + TOC_ITEM_CLOSE_TAG);
		}
	}
True if the two items are the same, except that they come from a different source file.
@param other the other item
@return true if equivalent
Ghidra/Framework/Help/src/main/java/help/validator/model/TOCItem.java