boolean (Object selected) { Integer currentIndex = myList.getSelectedButtonIndex(); int buttonsCount = myPopupInlineActionsSupport.calcExtraButtonsCount(selected); if (currentIndex == null) currentIndex = -1; if (currentIndex >= buttonsCount - 1) return false; boolean changed = myList.setSelectedButtonIndex(++currentIndex); if (changed) { getContent().repaint(); if (myPopupInlineActionsSupport.isMoreButton(selected, currentIndex) && buttonsCount == 1) { myPopupInlineActionsSupport.getInlineAction(selected, currentIndex, null).executeAction(); } } return true; }