Anchor topAnchor = anchorManager.createAnchor(topType, lineInfo.line(), lineInfo.number(),
AnchorManager.IGNORE_COLUMN);
topAnchor.setRemovalStrategy(Anchor.RemovalStrategy.SHIFT);
topAnchor.setInsertionPlacementStrategy(InsertionPlacementStrategy.EARLIER);
Anchor bottomAnchor = anchorManager.createAnchor(bottomType, lineInfo.line(), lineInfo.number(),
AnchorManager.IGNORE_COLUMN);
bottomAnchor.setRemovalStrategy(Anchor.RemovalStrategy.SHIFT);
bottomAnchor.setInsertionPlacementStrategy(InsertionPlacementStrategy.LATER);
SelectionModel selection = editor.getSelection();