Color (JComponent component, int state) { if (!(component instanceof ActionButton)) failBecauseOfWrongComponent(); if (ExperimentalUI.isNewUI()) { if (state == ActionButtonComponent.SELECTED) { ActionButton actionButton = (ActionButton)component; boolean isMouseDown = actionButton.isMouseDown(); return isMouseDown ? JBUI.CurrentTheme.SearchOption.BUTTON_SELECTED_PRESSED_BACKGROUND : JBUI.CurrentTheme.SearchOption.BUTTON_SELECTED_HOVERED_BACKGROUND; } } return super.getStateBackground(component, state); }