boolean (Commenter commenter, PsiComment comment, Document doc) { final String lineCommentPrefix = commenter.getLineCommentPrefix(); if (lineCommentPrefix != null) { return comment.getText().startsWith(lineCommentPrefix); } final TextRange textRange = comment.getTextRange(); return doc.getLineNumber(textRange.getStartOffset()) == doc.getLineNumber(textRange.getEndOffset()); }