public boolean isSelected() {
   final NavBarModel model = myPanel.getModel();
   return isPopupElement
       ? myPanel.isSelectedInPopup(myObject)
       : model.getSelectedIndex() == myIndex;
 }
 public boolean isInactive() {
   final NavBarModel model = myPanel.getModel();
   return model.getSelectedIndex() < myIndex && model.getSelectedIndex() != -1;
 }