void (@NotNull Collection<HgRepository> repositories, final @Nullable HgRepository selectedRepo) { hgRepositorySelector.setRoots(repositories); hgRepositorySelector.setSelectedRoot(selectedRepo); onChangeRepository(); }