boolean (@NotNull Project project, @NotNull VirtualFile vcsRoot, @NotNull VirtualFile file) { VirtualFile fileVcsRoot = VcsUtil.getVcsRootFor(project, file); return fileVcsRoot != null && vcsRoot.equals(fileVcsRoot); }