private boolean nextExtendedButton(Object selected) {
    Integer currentIndex = myList.getSelectedButtonIndex();
    int buttonsCount = myInlineActionsSupport.calcExtraButtonsCount(selected);
    if (currentIndex == null) currentIndex = -1;
    if (currentIndex >= buttonsCount - 1) return false;

    boolean changed = myList.setSelectedButtonIndex(++currentIndex);
    if (changed) {
      getContent().repaint();
      if (myInlineActionsSupport.isMoreButton(selected, currentIndex) && buttonsCount == 1) {
        myInlineActionsSupport.performAction(selected, currentIndex, null);
      }
    }
    return true;
  }
private boolean nextExtendedButton(Object selected)