void () { final VirtualFile[] roots = ProjectLevelVcsManager.getInstance(myProject).getRootsUnderVcs(GitVcs.getInstance(myProject)); final Collection<VirtualFile> rootsToCheck = ContainerUtil.filter(roots, root -> getUser(root) == null); if (!rootsToCheck.isEmpty()) { Runnable task = () -> { for (VirtualFile root : rootsToCheck) { getOrReadUser(root); } }; BackgroundTaskUtil.executeOnPooledThread(this, task); } }