private void showMessage(@NlsContexts.DialogMessage @NotNull String message, @NotNull JBColor color, @Nullable Icon statusIcon) {
    removeAll();

    setVisible(true);

    JBLabel label = new JBLabel(message);
    label
      .setText(HtmlChunk.tag("font").attr("color", "#" + ColorUtil.toHex(color))
               .child(HtmlChunk.tag("left").addRaw(message))
               .wrapWith("html")
               .toString());
    label.setIcon(statusIcon);
    label.setBorder(new EmptyBorder(4, 10, 0, 2));

    add(label, BorderLayout.CENTER);

    refreshUI();
  }
private void showMessage(@NlsContexts.DialogMessage @NotNull String message, @NotNull JBColor color, @Nullable Icon statusIcon)