private static HtmlChunk generateClassDoc(@NotNull PsiElement element) {
    final DocumentationProvider documentationProvider = DocumentationManager.getProviderFromElement(element);
    String doc = StringUtil.notNullize(documentationProvider.generateDoc(element, null));
    int bodyIndex = doc.indexOf("<body>");
    if (bodyIndex >= 0) {
      doc = doc.substring(bodyIndex + 6);
    }
    return HtmlChunk.raw(doc);
  }
private static HtmlChunk generateClassDoc(@NotNull PsiElement element)