JComponent (@HintText String text, Icon icon) { Color bg = getQuestionColor(); HintHint hintHint = new HintHint().setTextBg(bg) .setBorderColor(getHintBorderColor()) .setTextFg(JBColor.foreground()) .setFont(getBoldFont()) .setAwtTooltip(true) .setStatus(HintHint.Status.Info); return createLabel(text, ExperimentalUI.isNewUI() ? null : icon, bg, hintHint); }