@Override
  public void caretPositionChanged(@NotNull CaretEvent event) {
    myAlarm.cancelAllRequests();
    Editor editor = event.getEditor();
    if (shouldShowTooltip(editor)) myAlarm.addRequest(() -> showTooltip(editor), TOOLTIP_DELAY_MS);
  }
@Override
  public void caretPositionChanged(@NotNull CaretEvent event)