final void logError(Element el, DocTree tag, String message) {
		try {
			DocCommentTree tree = env.getDocTrees().getDocCommentTree(el);
			TreePath treePath = env.getDocTrees().getPath(el);
			DocTreePath path = DocTreePath.getPath(treePath, tree, tag);
			if (path != null) {
				log.print(Diagnostic.Kind.ERROR, path, message);
			}
			else {
				log.print(Diagnostic.Kind.ERROR, el, message);
			}
		}
		catch (Throwable t) {
			t.printStackTrace();
		}
	}
Logs an error with the provided message

@param el the current element
@param tag the current tag
@param message the message
GhidraBuild/BuildFiles/Doclets/src/main/java/ghidra/doclets/typestubs/DocConverter.java