@Override
  public @Nullable Caret addCaret(@NotNull LogicalPosition pos, boolean makePrimary) {
    LogicalPosition hostPos = myEditorWindow.injectedToHost(pos);
    Caret caret = myDelegate.addCaret(hostPos, makePrimary);
    return caret == null ? null : createInjectedCaret(caret);
  }
@Override
  public @Nullable Caret addCaret(@NotNull LogicalPosition pos, boolean makePrimary)