@Override
 public JComponent getPreferredFocusedComponent() {
   final TextEditor textEditor = myPanel.getFileEditor();
   if (textEditor != null) {
     return textEditor.getPreferredFocusedComponent();
   }
   return myPanel.getMainPanel();
 }
 @Override
 @NotNull
 public JComponent getComponent() {
   return myPanel.getMainPanel();
 }