@Override
  public @NotNull CaretImpl getCurrentCaret() {
    CaretImpl currentCaret = myCurrentCaret.get();
    return currentCaret != null ? currentCaret : getPrimaryCaret();
  }
@Override
  public @NotNull CaretImpl getCurrentCaret()