void () { JComponent preferredFocusedComponent = getPreferredFocusedComponent(); if (preferredFocusedComponent != null) { IdeFocusManager.getInstance(myProject).requestFocus(preferredFocusedComponent, true); } }