VcsRoot (@Nullable FilePath file) { if (file == null || myProject.isDisposed()) return null; NewMappings.MappedRoot root = myMappings.getMappedRootFor(file); return root != null ? new VcsRoot(root.vcs, root.root) : null; }