@Override
  public @NotNull TextRange getSelectionRange() {
    TextRange range = myDelegate.getSelectionRange();
    return TextRange.create(myEditorWindow.getDocument().hostToInjected(range.getStartOffset()), myEditorWindow.getDocument().hostToInjected(range.getEndOffset()));
  }
@Override
  public @NotNull TextRange getSelectionRange()