void (@NotNull VcsDirectoryMapping mapping) { myMappingCopy = new VcsDirectoryMapping(mapping.getDirectory(), mapping.getVcs(), mapping.getRootSettings()); myProjectRadioButton.setSelected(myMappingCopy.isDefaultMapping()); myDirectoryRadioButton.setSelected(!myProjectRadioButton.isSelected()); myDirectoryTextField.setText(myMappingCopy.isDefaultMapping() ? "" : toSystemDependentName(mapping.getDirectory())); myVCSComboBox.setSelectedItem(myVcsManager.findVcsByName(mapping.getVcs())); updateVcsConfigurable(); myDirectoryTextField.setEnabled(myDirectoryRadioButton.isSelected()); }