boolean (@Nullable PsiComment element) { if (element == null) return false; Commenter commenter = LanguageCommenters.INSTANCE.forLanguage(element.getLanguage()); return commenter instanceof CodeDocumentationAwareCommenter && ((CodeDocumentationAwareCommenter)commenter).getLineCommentTokenType() == getElementType(element); }