void (@NotNull JEditorPane area) { String messageBody = myEnableLink ? IdeBundle.message("updates.configure.label") : ""; HtmlChunk.Element html = new HtmlBuilder() .append(HtmlChunk.head() .addRaw(UIUtil.getCssFontDeclaration(StartupUiUtil.getLabelFont())) .child(HtmlChunk.styleTag("body {background: #" + ColorUtil.toHex(UIUtil.getPanelBackground()) + ";}"))) .append(HtmlChunk.body().addRaw(messageBody)) .wrapWith("html"); area.setBackground(UIUtil.getPanelBackground()); area.setBorder(JBUI.Borders.empty()); area.setText(html.toString()); area.setCaretPosition(0); area.setEditable(false); if (myEnableLink) { area.addHyperlinkListener((e) -> { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { ShowSettingsUtil.getInstance().editConfigurable(area, new UpdateSettingsConfigurable(false)); } }); } }