ivate void showLicensePanel() {
    IdeaPluginDescriptor descriptor = getDescriptorForActions();
    String productCode = descriptor.getProductCode();
    if (descriptor.isBundled() || LicensePanel.isEA2Product(productCode)) {
      myLicensePanel.hideWithChildren();
      return;
    }
    if (productCode == null) {
      if (myUpdateDescriptor != null && myUpdateDescriptor.getProductCode() != null &&
          !LicensePanel.isEA2Product(myUpdateDescriptor.getProductCode())) {
        myLicensePanel.setText(IdeBundle.message("label.next.plugin.version.is"), true, false);
        myLicensePanel.showBuyPlugin(() -> myUpdateDescriptor, true);
        myLicensePanel.setVisible(true);
      }
      else {
        myLicensePanel.hideWithChildren();
      }
    }
    else if (myMarketplace) {
      boolean requiresCommercialIde = false;

      if (descriptor instanceof PluginNode plugin) {
        Integer trialPeriod = plugin.getTrialPeriod();
        boolean isFreemium = plugin.getTags().contains(Tags.Freemium.name());
        requiresCommercialIde = plugin.getSuggestedCommercialIde() != null;

        myLicensePanel.setText(getPaidPluginLicenseText(isFreemium, trialPeriod), false, false);
      } else {
        myLicensePanel.setText(IdeBundle.message("label.install.paid.without.trial"), false, false);
      }

      myLicensePanel.showBuyPlugin(() -> descriptor, false);

      // if the descriptor requires a commercial IDE, we do not show trial/price message
      myLicensePanel.setVisible(!requiresCommercialIde);
    }
    else {
      LicensingFacade instance = LicensingFacade.getInstance();
      if (instance == null) {
        myLicensePanel.hideWithChildren();
        return;
      }

      String stamp = instance.getConfirmationStamp(productCode);
      if (stamp == null) {
        if (ApplicationManager.getApplication().isEAP()) {
          myTagPanel.setFirstTagTooltip(IdeBundle.message("tooltip.license.not.required.for.eap.version"));
          myLicensePanel.hideWithChildren();
          return;
        }
        myLicensePanel.setText(IdeBundle.message("label.text.plugin.no.license"), true, false);
      }
      else {
        myLicensePanel.setTextFromStamp(stamp, instance.getExpirationDate(productCode));
      }

      myTagPanel.setFirstTagTooltip(myLicensePanel.getMessage());
      //myLicensePanel.setLink("Manage licenses", () -> { XXX }, false);
      myLicensePanel.setVisible(true);
    }
  }


ivate void showLicensePanel() {