private void addCommentTags(Element element, DocTree holderTag, List<? extends DocTree> tags, boolean depr,
            boolean first, Content htmltree) {
        if(configuration.nocomment){
            return;
        }
        Content div;
        Content result = commentTagsToContent(null, element, tags, first);
        if (depr) {
            Content italic = HtmlTree.SPAN(HtmlStyle.deprecationComment, result);
            div = HtmlTree.DIV(HtmlStyle.block, italic);
            htmltree.addContent(div);
        }
        else {
            div = HtmlTree.DIV(HtmlStyle.block, result);
            htmltree.addContent(div);
        }
        if (tags.isEmpty()) {
            htmltree.addContent(Contents.SPACE);
        }
    }
private void addCommentTags ( Element element , DocTree holderTag , List < ? extends DocTree > tags , boolean depr , boolean first , Content htmltree ) { if ( configuration . nocomment ) { return ; } Content div ; Content result = commentTagsToContent ( null , element , tags , first ) ; if ( depr ) { Content italic = HtmlTree . SPAN ( HtmlStyle . deprecationComment , result ) ; div = HtmlTree . DIV ( HtmlStyle . block , italic ) ; htmltree . addContent ( div ) ; } else { div = HtmlTree . DIV ( HtmlStyle . block , result ) ; htmltree . addContent ( div ) ; } if ( tags . isEmpty ( ) ) { htmltree . addContent ( Contents . SPACE ) ; } }
Adds the comment tags.

@param element for which the comment tags will be generated
@param holderTag the block tag context for the inline tags
@param tags the first sentence tags for the doc
@param depr true if it is deprecated
@param first true if the first sentence tags should be added
@param htmltree the documentation tree to which the comment tags will be added