public void select(@NotNull TextRange range) {
    Editor editor = getEditor();
    if (editor != null) {
      doSelect(editor, range);
    } else {
      deferredSelection = new DeferredSelection.Custom(range);
    }
  }
public void select(@NotNull TextRange range)