List<String> () { Collection<VcsRef> branches = myFilterModel.getDataPack().getRefs().getBranches(); if (myBranchFilterModel.getVisibleRoots() != null) { branches = ContainerUtil.filter(branches, branch -> myBranchFilterModel.getVisibleRoots().contains(branch.getRoot())); } return ContainerUtil.map(branches, VcsRef::getName); }