boolean (@NotNull PsiElement element, @NotNull CharSequence chars, int offset) { PsiElement parent = PsiTreeUtil.findFirstParent( element, e -> e.getNode().getElementType() == JavaDocElementType.DOC_COMMENT); if (parent != null) { int preStart = CharArrayUtil.lastIndexOf(chars, PRE_TAG_START, offset); if (preStart >= 0) { int preEnd = CharArrayUtil.indexOf(chars, PRE_TAG_END, preStart, chars.length()); return preEnd > offset; } } return false; }