private void changePanel () {
    final Integer selectedType = (Integer)myTypeChooser.getSelectedItem();
    if (selectedType == null) return;
    myPackagePanel.setVisible(selectedType == JUnitConfigurationModel.ALL_IN_PACKAGE);
    myScopesPanel.setVisible(selectedType == JUnitConfigurationModel.PATTERN ||
                             selectedType == JUnitConfigurationModel.ALL_IN_PACKAGE ||
                             selectedType == JUnitConfigurationModel.TAGS ||
                             selectedType == JUnitConfigurationModel.CATEGORY);
    myPattern.setVisible(selectedType == JUnitConfigurationModel.PATTERN);
    myDir.setVisible(selectedType == JUnitConfigurationModel.DIR);
    myClass.setVisible(selectedType == JUnitConfigurationModel.CLASS ||
                       selectedType == JUnitConfigurationModel.METHOD ||
                       selectedType == JUnitConfigurationModel.BY_SOURCE_POSITION);
    myMethod.setVisible(selectedType == JUnitConfigurationModel.PATTERN ||
                        selectedType == JUnitConfigurationModel.METHOD ||
                        selectedType == JUnitConfigurationModel.BY_SOURCE_POSITION);
    myCategory.setVisible(selectedType == JUnitConfigurationModel.CATEGORY);
    myUniqueIdField.setVisible(selectedType == JUnitConfigurationModel.UNIQUE_ID);
    myTagsField.setVisible(selectedType == JUnitConfigurationModel.TAGS);
    myChangeListLabeledComponent.setVisible(selectedType == JUnitConfigurationModel.BY_SOURCE_CHANGES);

    myForkCb.setModel(new DefaultComboBoxModel<>(getForkModel(selectedType, myRepeatCb.getSelectedItem())));
    myForkCb.setSelectedItem(updateForkMethod(selectedType, (String)myForkCb.getSelectedItem(), myRepeatCb.getSelectedItem()));
  }
private void changePanel ()