Color (boolean selected) { ContentManager contentManager = getContentManager(); if (contentManager.getContentCount() > 1) { return selected ? JBUI.CurrentTheme.ToolWindow.underlinedTabForeground() : JBUI.CurrentTheme.Label.foreground(false); } return super.getActiveFg(selected); }