@Override
	String convertTag(Element el, DocTree tag, ListIterator<? extends DocTree> it) {
		// NOTE: each tag is responsible for its own line endings
		return switch (tag.getKind()) {
			case DOC_ROOT -> tag.toString(); // not sure what would be an appropriate replacement
			case PARAM -> convertParamTag(el, (ParamTree) tag);
			case RETURN -> convertReturnTag((ExecutableElement) el, (ReturnTree) tag);
			case THROWS -> convertThrowsTag((ExecutableElement) el, (ThrowsTree) tag);
			case START_ELEMENT -> convertHTML(el, (StartElementTree) tag, it);
			case END_ELEMENT -> convertHTML((EndElementTree) tag);
			case LINK -> convertLinkTag(el, (LinkTree) tag);
			case LINK_PLAIN -> convertLinkTag(el, (LinkTree) tag);
			case EXCEPTION -> convertThrowsTag((ExecutableElement) el, (ThrowsTree) tag);
			case ENTITY -> convertEntity((EntityTree) tag);
			case CODE -> convertCodeTag((LiteralTree) tag);
			case LITERAL -> convertLiteralTag((LiteralTree) tag);
			case VALUE -> convertValueTag(el, (ValueTree) tag);
			case DEPRECATED -> convertDeprecatedTag(el, (DeprecatedTree) tag);
			case REFERENCE -> convertReferenceTag(el, (ReferenceTree) tag);
			case SINCE -> convertSinceTag(el, (SinceTree) tag);
			case AUTHOR -> convertAuthorTag(el, (AuthorTree) tag);
			case VERSION -> ""; // ignored
			case ERRONEOUS -> {
				logError(el, tag, "erroneous javadoc tag");
				yield tag.toString();
			}
			case UNKNOWN_BLOCK_TAG -> convertUnknownBlockTag(el, (UnknownBlockTagTree) tag);
			case UNKNOWN_INLINE_TAG -> {
				if (JDK_TAGLETS.contains(((UnknownInlineTagTree) tag).getTagName())) {
					yield "";
				}
				logError(el, tag, "unknown javadoc inline tag");
				yield tag.toString();
			}
			case TEXT -> ((TextTree) tag).getBody();
			case SNIPPET -> convertSnippet(el, (SnippetTree) tag);
			case INHERIT_DOC -> ""; // ignored, anything containing this is skipped
			case OTHER -> {
				if (tag instanceof HtmlDocTree html) {
					yield htmlConverter.convertHtml(html, el, it);
				}
				else {
					yield tag.toString();
				}
			}
			case SPEC -> "";
			case SERIAL -> "";
			case SERIAL_DATA -> "";
			case SYSTEM_PROPERTY -> "``" + ((SystemPropertyTree) tag).getPropertyName() + "``";
			case COMMENT -> "";
			case INDEX -> "";
			default -> {
				logWarning(el, tag, "unsupported javadoc tag");
				yield tag.toString();
			}
			case ESCAPE -> ((EscapeTree) tag).getBody();
			case SERIAL_FIELD -> "";
			case SUMMARY -> convertTree(el, ((SummaryTree) tag).getSummary());
			case USES -> "";
		};
	}
Gets the converted documentation for the provided element and doc tree

@param el the element
@param docCommentTree the doc tree
@return the converted documentation
GhidraBuild/BuildFiles/Doclets/src/main/java/ghidra/doclets/typestubs/JavadocConverter.java