boolean (PsiElement element) { PsiElement prevSibling = element.getPrevSibling(); if (!(prevSibling instanceof PsiDocToken)) return true; if (((PsiDocToken)prevSibling).getTokenType() != JavaDocTokenType.DOC_COMMENT_DATA) return true; String text = prevSibling.getText(); return endsWithHtmlBlockTag(text) || isNullOrBlockTag(prevSibling); }