public static void showToolWindowErrorNotifier(final Project project, final String html, @Nullable final HyperlinkListener hyperlinkListener) {
final ToolWindowManager manager = ToolWindowManager.getInstance(project);
if (manager == null) { // this should never happen.
return;
}
manager.notifyByBalloon(IdeaUtilImpl.getPluginComponent(project).getInternalToolWindowId(), MessageType.ERROR, html, null, hyperlinkListener);
}
public static void showPopup(final Project project, final Component parent, final String html, final Orientation orientation, @Nullable final Icon icon, final Color bgColor) {
final BalloonBuilder builder = JBPopupFactory.getInstance().createHtmlTextBalloonBuilder(html, icon, bgColor, null);