void (@NotNull String stamp, @Nullable Date expirationDate) { long days = expirationDate == null ? 0 : DateFormatUtil.getDifferenceInDays(new Date(), expirationDate); if (stamp.startsWith("eval:")) { if (days <= 0) { setText(IdeBundle.message("trial.expired"), false, true); } else { setText(IdeBundle.message("plugins.configurable.trial.expires.in.0.days", days), days < 11, false); } } else if (expirationDate == null) { setText(IdeBundle.message("plugins.configurable.license.is.active"), false, false); } else if (days > 30) { setText(IdeBundle .message("plugins.configurable.license.is.active.until.0", PluginManagerConfigurable.DATE_FORMAT.format(expirationDate)), false, false); } else if (days <= 0) { setText(IdeBundle.message("plugins.configurable.license.expired"), false, true); } else { setText(IdeBundle.message("plugins.configurable.license.expires.in.0.days", days), days < 11, false); } }