VcsDirectoryMapping () { AbstractVcs vcs = myVCSComboBox.getItem(); String vcsName = vcs != null ? vcs.getName() : ""; String directory = myProjectRadioButton.isSelected() ? "" : toSystemIndependentName(myDirectoryTextField.getText()); return new VcsDirectoryMapping(directory, vcsName, myMappingCopy.getRootSettings()); }