public static Point getHintPosition(@NotNull LightweightHint hint,
                                      @NotNull Editor editor,
                                      @NotNull RelativePoint point,
                                      @PositionFlags short constraint) {
    Point p = point.getPoint(editor.getContentComponent());
    return getHintPosition(hint, editor, p, p, constraint, Registry.is("editor.balloonHints"));
  }
public static Point getHintPosition(@NotNull LightweightHint hint,
                                      @NotNull Editor editor,
                                      @NotNull RelativePoint point,
                                      @PositionFlags short constraint)