private static void InsertTextFieldAt(TextViewCaret caret)
        {
            TextDocument document       = caret.TextDocument;
            EditPoint    startEditPoint = CodeRush.EditPoints.New(document, caret.SourcePoint);

            startEditPoint.IsAnchorable = true;
            EditPoint endEditPoint = CodeRush.EditPoints.New(document, caret.SourcePoint);

            endEditPoint.IsPushable = true;
            TextField newField    = new TextField(startEditPoint, endEditPoint, "Enter string value", TextFieldType.Normal, false);
            EditPoint targetPoint = endEditPoint.Clone();

            targetPoint.MoveRight(1);
            TextFieldTarget newTarget = new TextFieldTarget(targetPoint, targetPoint);

            document.TextFields.Add(newField);
            document.TextFieldTarget = newTarget;
        }