@Override @NotNull public Collection<VcsRef> getBranches() { return myRefs .values() .stream() .flatMap(CompressedRefs::streamBranches) .collect(Collectors.toList()); }
@NotNull public Stream<VcsRef> stream() { assert !ApplicationManager.getApplication().isDispatchThread(); return myRefs.values().stream().flatMap(CompressedRefs::stream); }