JComponent () { if (myConfigurable == null) return null; // settings editor is not configured yet JComponent preferred = myConfigurable.getPreferredFocusedComponent(); return preferred == null ? UIUtil.getPreferredFocusedComponent(getContent(myConfigurable)) : preferred; }