@Override
  protected void doOKAction() {
    PropertiesComponent.getInstance().setValue(FILTER_NON_EXISTING, !myShowExisting);
    JComponent selectedTab = myTabbedPaneWrapper.getSelectedComponent();
    if (selectedTab == myByFilePanel.getPanel() ||
        myByClassPanel != null && selectedTab == myByClassPanel.getPanel()) {
      setSelection(selectedTab == myByFilePanel.getPanel()
                   ? myByFilePanel.getChosenElement()
                   : myByClassPanel.getChosenElement());
    }
    final ItemWrapper item = myView.getSelectedItem();
    if (item != null) {
      final PsiDirectory directory = item.getDirectory();
      if (directory != null) {
        PropertiesComponent.getInstance(directory.getProject()).setValue(DEFAULT_SELECTION, directory.getVirtualFile().getPath());
      }
    }
    super.doOKAction();
  }
@Override
  protected void doOKAction()