public void setSelectedRoot(@Nullable HgRepository repository) {
    if (repository != null) {
      repositorySelector.setSelectedItem(repository);
    }
  }
public void setSelectedRoot(@Nullable HgRepository repository)