HtmlChunk (@NotNull PyFile module) { final QualifiedName name = QualifiedNameFinder.findCanonicalImportPath(module, null); if (name != null) { return PyDocumentationLink.toModule(name.toString(), name.toString()); } final VirtualFile vFile = module.getVirtualFile(); if (vFile != null) { @NlsSafe String vFilePath = vFile.getPath(); return HtmlChunk.raw(vFilePath); } else { return null; } }