void (@NotNull LogicalPosition blockStart, @NotNull LogicalPosition blockEnd) { List<CaretState> caretStates = EditorModificationUtil.calcBlockSelectionState(myEditor, blockStart, blockEnd); myEditor.getCaretModel().setCaretsAndSelections(caretStates); }