PsiElement (PsiElement element) { for (PsiElement e = element.getNextSibling(); e != null; e = e.getNextSibling()) { if (!(e instanceof PsiWhiteSpace || e instanceof PsiDocToken docToken && docToken.getTokenType() == JavaDocTokenType.DOC_COMMENT_LEADING_ASTERISKS)) { return e; } } return null; }