String (PsiElement element) { final PsiElement sibling = element.getNextSibling(); if (sibling == null || sibling.getNode().getElementType() != JavaDocTokenType.DOC_COMMENT_LEADING_ASTERISKS) { return element.getText(); } final int lf = element.getText().lastIndexOf('\n'); return lf == -1 ? element.getText() : element.getText().substring(0, lf + 1); }