@Override
  public List<TextRange> select(@NotNull PsiElement element, @NotNull CharSequence editorText, int cursorOffset, @NotNull Editor editor) {
    List<TextRange> result = super.select(element, editorText, cursorOffset, editor);

    if (element instanceof GrDocMethodParams params) {
      TextRange range = params.getTextRange();
      if (range.contains(cursorOffset)) {
        PsiElement leftParen = params.getLeftParen();
        PsiElement rightParen = params.getRightParen();
        int leftOffset = leftParen.getTextOffset();
        if (rightParen != null) {
          if (leftOffset + 1 < rightParen.getTextOffset()) {
            int rightOffset = rightParen.getTextRange().getEndOffset();
            range = new TextRange(leftParen.getTextRange().getStartOffset() + 1, rightOffset - 1);
            result.add(range);
          }
        } else {
          range = new TextRange(leftParen.getTextRange().getStartOffset() + 1, element.getTextRange().getEndOffset());
          result.add(range);
        }
      }
    }
    return result;
  }
@Override
  public List<TextRange> select(@NotNull PsiElement element, @NotNull CharSequence editorText, int cursorOffset, @NotNull Editor editor)