@Override
  public boolean setCaretEnabled(boolean enabled) {
    return ReadAction.compute(() -> {
      boolean old = myCaretCursor.isEnabled();
      myCaretCursor.setEnabled(enabled);
      return old;
    });
  }
@Override
  public boolean setCaretEnabled(boolean enabled)