Color (boolean useContrastColors) { Color base = JBColor.namedColor("GotItTooltip.shortcutForeground", foreground(false)); if (useContrastColors) { return JBColor.namedColor("Tooltip.Learning.spanForeground", base); } return base; }