public @Nullable LightweightHint showTooltipByMouseMove(@NotNull Editor editor,
                                                          @NotNull RelativePoint point,
                                                          @NotNull TooltipRenderer tooltipObject,
                                                          boolean alignToRight,
                                                          @NotNull TooltipGroup group,
                                                          @NotNull HintHint hintHint) {
    LightweightHint currentTooltip = myCurrentTooltip;
    if (currentTooltip == null || !currentTooltip.isVisible()) {
      if (currentTooltip != null) {
        if (!IdeTooltipManager.getInstance().isQueuedToShow(currentTooltip.getCurrentIdeTooltip())) {
          myCurrentTooltipObject = null;
        }
      }
      else {
        myCurrentTooltipObject = null;
      }
    }

    if (tooltipObject.equals(myCurrentTooltipObject)) {
      IdeTooltipManager.getInstance().cancelAutoHide();
      return myCurrentTooltip;
    }
    hideCurrentTooltip();

    JRootPane rootPane = editor.getComponent().getRootPane();
    if (rootPane == null) {
      return null;
    }
    Point p = point.getPointOn(rootPane.getLayeredPane()).getPoint();
    if (!hintHint.isAwtTooltip()) {
      p.x += alignToRight ? -10 : 10;
    }

    Project project = editor.getProject();
    if (project != null && !project.isOpen()) return null;
    if (editor.getContentComponent().isShowing()) {
      return doShowTooltip(editor, p, tooltipObject, alignToRight, group, hintHint);
    }
    return null;
  }
public @Nullable LightweightHint showTooltipByMouseMove(@NotNull Editor editor,
                                                          @NotNull RelativePoint point,
                                                          @NotNull TooltipRenderer tooltipObject,
                                                          boolean alignToRight,
                                                          @NotNull TooltipGroup group,
                                                          @NotNull HintHint hintHint)