Collection<VirtualFile> () { final Collection<VirtualFile> rebasingRoots = new HashSet<>(); for (VirtualFile root : ProjectLevelVcsManager.getInstance(myProject).getRootsUnderVcs(myVcs)) { if (GitRebaseUtils.isRebaseInTheProgress(myProject, root)) { rebasingRoots.add(root); } } return rebasingRoots; }