void (ActionEvent e) { Object selected = myList.getSelectedValue(); if (selected != null && myPopupInlineActionsSupport.hasExtraButtons(selected)) { if (nextExtendedButton(selected)) return; } handleRightKeyPressed(createKeyEvent(e, KeyEvent.VK_RIGHT)); }