boolean (@NotNull PsiElement element) { if (!(element instanceof PsiComment comment)) { return false; } if (element instanceof PsiDocComment) { return false; } final IElementType type = comment.getTokenType(); return GroovyTokenTypes.mSL_COMMENT.equals(type); }