Пример #1
0
 @Override
 @NotNull
 public Collection<VcsRef> getBranches() {
   return myRefs
       .values()
       .stream()
       .flatMap(CompressedRefs::streamBranches)
       .collect(Collectors.toList());
 }
Пример #2
0
 @NotNull
 public Stream<VcsRef> stream() {
   assert !ApplicationManager.getApplication().isDispatchThread();
   return myRefs.values().stream().flatMap(CompressedRefs::stream);
 }