void () { Object selectedPopupObject = getSelectedPopupObject(); if (selectedPopupObject != null) { navigateInsideBar(mySelection.barIndex, selectedPopupObject, true); } else { int index = myModel.getSelectedIndex(); if (index != -1) doubleClick(index); } }