void (Graphics2D g, NavBarPanel panel, NavBarItem item, Rectangle rectangle) { Color color; NavBarModel model = panel.getModel(); NavBarPopup popup = panel.getNodePopup(); if (item.isMouseHover()) { color = JBUI.CurrentTheme.StatusBar.Breadcrumbs.HOVER_BACKGROUND; } else if ((model.getSelectedIndex() == item.getIndex()) && item.isFocused()) { color = JBUI.CurrentTheme.StatusBar.Breadcrumbs.SELECTION_BACKGROUND; } else if ((model.getSelectedIndex() == item.getIndex()) && popup != null && popup.isVisible() && popup.getItemIndex() == item.getIndex()) { color = JBUI.CurrentTheme.StatusBar.Breadcrumbs.SELECTION_INACTIVE_BACKGROUND; } else return; paintHighlight(g, rectangle, color); }