title: How to fold an inserted region with Open Tools API?
body: <p>I wanna insert a region in an edit view and then fold this region.</p>
  
  <pre><code>// fEditView: IOTAEditView;
  
  var
    writer: IOTAEditWriter;
  begin
    writer := fEditView.Buffer.CreateUndoableWriter;
    //...
    writer.Insert('{$REGION ''Documentation''}'#13#10'{$ENDREGION}');
    writer := nil;  // Flush the buffer
    fEditView.Position.GotoLine(lineNo); // go to the line number of the region
    fEditView.Paint;
  end;
  </code></pre>
  
  <p>This code snippet will insert a region in the code editor. But the IDE needs some action to generate such a region in the code editor.</p>
  
  <p>Is there any way to force the IDE do this action and then I can use </p>
  
  <pre><code>(fEditView as IOTAElideActions).ElideNearestBlock;
  </code></pre>
  
  <p>to fold it?</p>