void (boolean scrollAndFocus) { SwingUtilities.invokeLater(() -> { myEventHandler.initialSelection(scrollAndFocus); if (!myGroups.isEmpty()) { scrollRectToVisible(myGroups.get(0).panel.getBounds()); } }); }