void () { String productCode = myPlugin.getProductCode(); LicensingFacade instance = LicensingFacade.getInstance(); if (myMarketplace || productCode == null || instance == null || myPlugin.isBundled() || LicensePanel.isEA2Product(productCode)) { return; } LicensePanel licensePanel = new LicensePanel(true); String stamp = instance.getConfirmationStamp(productCode); if (stamp == null) { if (ApplicationManager.getApplication().isEAP() && !Boolean.getBoolean("eap.require.license")) { setTagTooltip(IdeBundle.message("label.text.plugin.eap.license.not.required")); return; } licensePanel.setText(IdeBundle.message("label.text.plugin.no.license"), true, false); } else { licensePanel.setTextFromStamp(stamp, instance.getExpirationDate(productCode)); } setTagTooltip(licensePanel.getMessage()); if (licensePanel.isNotification()) { licensePanel.setBorder(JBUI.Borders.emptyTop(3)); //licensePanel.setLink("Manage licenses", () -> { XXX }, false); myLayout.addLineComponent(licensePanel); myLicensePanel = licensePanel; } }