Color (boolean selected, boolean active) { String key = selected ? active ? "EditorTabs.hoverSelectedBackground" : "EditorTabs.hoverSelectedInactiveBackground" : active ? "EditorTabs.hoverBackground" : "EditorTabs.hoverInactiveBackground"; return JBColor.namedColor(key, selected ? Gray.TRANSPARENT : DefaultTabs.hoverBackground()); }