private static String getPlainDocString(List<? extends DocTree> tags) {
		StringBuilder builder = new StringBuilder();
		int ignoreDepth = 0;
		for (DocTree tag : tags) {
			switch (tag.getKind()) {
				case LINK:
				case LINK_PLAIN:
					LinkTree link = (LinkTree) tag;
					List<? extends DocTree> label = link.getLabel();
					if (!label.isEmpty()) {
						builder.append(getPlainDocString(label));
					}
					else {
						String sig = link.getReference().getSignature().replaceAll("#", ".");
						if (sig.startsWith(".")) {
							sig = sig.substring(1);
						}
						builder.append(sig);
					}
					break;
				case TEXT:
					TextTree text = (TextTree) tag;
					if (ignoreDepth == 0) {
						builder.append(text.getBody());
					}
					break;
				case START_ELEMENT:
					StartElementTree start = (StartElementTree) tag;
					if (!start.isSelfClosing()) {
						ignoreDepth++;
					}
					break;
				case END_ELEMENT:
					ignoreDepth--;
					break;
				default:
					break;
			}
		}
		return builder.toString();
	}
Gets the docstring for the provided tags without markup

@param tags the list of doclet tags
@return the docstring without any markup
GhidraBuild/BuildFiles/Doclets/src/main/java/ghidra/doclets/typestubs/PythonTypeStubDoclet.java