String (PsiDocComment comment) { if (comment == null) return ""; return Arrays.stream(comment.getChildren()) .filter(e -> (e instanceof PsiDocToken) && ((PsiDocToken)e).getTokenType() == JavaDocTokenType.DOC_COMMENT_DATA) .map(PsiElement::getText) .collect(Collectors.joining()); }