private static boolean isHintIntersectWithLookup(Point hintPoint,
                                                   Dimension hintSize,
                                                   Rectangle lookupBounds,
                                                   boolean isRealPopup,
                                                   short hintPosition){
    Point leftTopPoint = isRealPopup
      ? hintPoint
      : hintPosition == HintManager.ABOVE
          ? new Point(hintPoint.x - hintSize.width / 2, hintPoint.y - hintSize.height)
          : new Point(hintPoint.x - hintSize.width / 2, hintPoint.y);

    return lookupBounds.intersects(new Rectangle(leftTopPoint, hintSize));
  }
private static boolean isHintIntersectWithLookup(Point hintPoint,
                                                   Dimension hintSize,
                                                   Rectangle lookupBounds,
                                                   boolean isRealPopup,
                                                   short hintPosition)