private static boolean showPopupIfNeedTo(@NotNull JBPopup popup, @NotNull RelativePoint popupPosition, @NotNull Ref<? super Long> popupShownTime) {
    if (!popup.isDisposed() && !popup.isVisible() && popup.canShow()) {
      popup.show(popupPosition);
      popupShownTime.set(System.currentTimeMillis());
      return true;
    }
    return false;
  }
private static boolean showPopupIfNeedTo(@NotNull JBPopup popup, @NotNull RelativePoint popupPosition, @NotNull Ref<? super Long> popupShownTime)