@Override
  public List<TextRange> select(@NotNull PsiElement e, @NotNull CharSequence editorText, int cursorOffset, @NotNull Editor editor) {
    final GrDocCommentOwner owner;
    final GrDocComment doc;
    if (e instanceof GrDocComment) {
      doc = (GrDocComment)e;
      owner = GrDocCommentUtil.findDocOwner(doc);
    }
    else {
      owner = (GrDocCommentOwner)e;
      doc = GrDocCommentUtil.findDocComment(owner);
    }

    if (doc == null || owner == null) return Collections.emptyList();

    final TextRange range = new TextRange(doc.getTextRange().getStartOffset(), owner.getTextRange().getEndOffset());
    return ExtendWordSelectionHandlerBase.expandToWholeLine(editorText, range, true);
  }
@Override
  public List<TextRange> select(@NotNull PsiElement e, @NotNull CharSequence editorText, int cursorOffset, @NotNull Editor editor)