void (@NotNull Map<VirtualFile, List<FilePath>> files, @NotNull FilePath file, @NotNull List<? super VcsException> exceptions) { try { VirtualFile root = GitUtil.getRootForFile(myProject, file); List<FilePath> paths = files.computeIfAbsent(root, key -> new ArrayList<>()); paths.add(file); } catch (VcsException e) { exceptions.add(e); } }