private void switchSearchReplace() {
    storeDimensions();
    myReplace = !myReplace;
    setTitle(getDefaultTitle());
    myReplacePanel.setVisible(myReplace);
    loadConfiguration(myConfiguration);
    final Dimension size =
      DimensionService.getInstance().getSize(myReplace ? REPLACE_DIMENSION_SERVICE_KEY : SEARCH_DIMENSION_SERVICE_KEY, myProject);
    if (size != null) {
      setSize(size.width, size.height);
    }
    else {
      pack();
    }
  }
private void switchSearchReplace()