private @Nullable JComponent getTooltip(@NotNull Object value, @NotNull Point point, int row) {
    GraphCommitCell cell = getValue(value);
    Collection<VcsRef> refs = cell.getRefsToThisCommit();
    Collection<VcsBookmarkRef> bookmarks = cell.getBookmarksToThisCommit();
    if (refs.isEmpty() && bookmarks.isEmpty()) return null;

    prepareTemplateComponent(row, cell);
    if (myTemplateComponent.getReferencePainter().isLeftAligned()) {
      double distance = point.getX() - myTemplateComponent.getGraphWidth();
      if (distance > 0 && distance <= myTemplateComponent.getReferencesWidth()) {
        return new TooltipReferencesPanel(myLogData, refs, bookmarks);
      }
    }
    else {
      if (getColumnWidth() - point.getX() <= myTemplateComponent.getReferencesWidth()) {
        return new TooltipReferencesPanel(myLogData, refs, bookmarks);
      }
    }
    return null;
  }
private @Nullable JComponent getTooltip(@NotNull Object value, @NotNull Point point, int row)