private static void updatePointer(Ref<LightCalloutPopup> ref) {
    LightCalloutPopup popup = ref.get();
    Balloon balloon = popup.getBalloon();
    if (balloon instanceof BalloonImpl) {
      RelativePoint showingPoint = ((BalloonImpl)balloon).getShowingPoint();
      Color c = popup.getPointerColor(showingPoint, ((BalloonImpl)balloon).getComponent());
      if (c != null) {
        c = ColorUtil.withAlpha(c, 1.0); //clear transparency
      }
      ((BalloonImpl)balloon).setPointerColor(c);
    }
  }
private static void updatePointer(Ref<LightCalloutPopup> ref)