boolean (@NotNull FilePath path) { VcsRoot rootObject = myVcsManager.getVcsRootObjectFor(path); if (rootObject == null || !myVcs.equals(rootObject.getVcs())) return false; return isInDirtyFiles(path, rootObject.getPath()); }