void (@NotNull Project project, @NotNull CommittedChangeList changeList) { String htmlFormat = "<html><head>%s</head><body>%s</body></html>"; // NON-NLS String details = format(htmlFormat, getCssFontDeclaration(StartupUiUtil.getLabelFont()), getDetails(project, changeList)); JEditorPane editorPane = new JEditorPane(HTML_MIME, details); editorPane.setEditable(false); editorPane.setBackground(HintUtil.getInformationColor()); editorPane.select(0, 0); editorPane.addHyperlinkListener(BrowserHyperlinkListener.INSTANCE); JBPopupFactory.getInstance().createComponentPopupBuilder(createScrollPane(editorPane), editorPane) .setDimensionServiceKey(project, "changelist.details.popup", false) .setResizable(true) .setMovable(true) .setRequestFocus(true) .setTitle(message("changelist.details.title")) .createPopup() .showInBestPositionFor(DataManager.getInstance().getDataContext()); }