void (ActionEvent e) { myTemplateList.setEnabled(myCreateFromTemplateCheckBox.isSelected()); if (myCreateFromTemplateCheckBox.isSelected()) { IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance().requestFocus(myTemplateList.getList(), true)); } }