void (@NotNull PyFile followed) { // what to prepend to a module description? final VirtualFile file = followed.getVirtualFile(); if (file == null) { myBody.append(HtmlChunk.text(PyPsiBundle.message("QDOC.module.path.unknown")).wrapWith(HtmlChunk.tag("small"))); } else { final QualifiedName name = QualifiedNameFinder.findShortestImportableQName(followed); if (name != null) { @NonNls String qualifiedName = ObjectUtils.chooseNotNull(QualifiedNameFinder.canonizeQualifiedName(followed, name, null), name).toString(); if (PyUtil.isPackage(followed)) { myBody.appendRaw(PyPsiBundle.message("QDOC.package.name", HtmlChunk.text(qualifiedName).bold())); } else { myBody.appendRaw(PyPsiBundle.message("QDOC.module.name", HtmlChunk.text(qualifiedName).bold())); } } else { @NonNls final String path = file.getPath(); myBody.append(HtmlChunk.raw(path).wrapWith(HtmlChunk.tag("span").attr("path", path))); } } }