void () { if (!myList.isEmpty()) { if (myList.getSelectedValue() == null) { myList.setSelectedIndex(0); updateRightComponent(true); } } IdeFocusManager.getInstance(myProject).requestFocus(myList, true); }