private static void markDirty(@NotNull FilePath filePath,
                                  @NotNull ProjectLevelVcsManager vcsManager,
                                  @NotNull VcsDirtyScopeManager dirtyScopeManager) {
      AbstractVcs vcs = vcsManager.getVcsFor(filePath);
      if (vcs == null) return;

      if (vcs.areDirectoriesVersionedItems()) {
        FilePath parentPath = filePath.getParentPath();
        if (parentPath != null && vcsManager.getVcsFor(parentPath) == vcs) {
          dirtyScopeManager.dirDirtyRecursively(parentPath);
          return;
        }
      }

      dirtyScopeManager.fileDirty(filePath);
    }
private static void markDirty(@NotNull FilePath filePath,
                                  @NotNull ProjectLevelVcsManager vcsManager,
                                  @NotNull VcsDirtyScopeManager dirtyScopeManager)