default void setSelection(int startOffset, @Nullable VisualPosition endPosition, int endOffset) {
    getEditor().getCaretModel().getCurrentCaret().setSelection(startOffset, endPosition, endOffset);
  }
default void setSelection(int startOffset, @Nullable VisualPosition endPosition, int endOffset)