private static void refreshPassedFiles(@NotNull Project project,
                                         @NotNull Collection<? extends FilePath> directlyAffected,
                                         @NotNull Collection<? extends VirtualFile> indirectlyAffected) {
    final LocalFileSystem lfs = LocalFileSystem.getInstance();
    for (FilePath filePath : directlyAffected) {
      lfs.refreshAndFindFileByIoFile(filePath.getIOFile());
    }
    if (project.isDisposed()) return;

    VcsDirtyScopeManager vcsDirtyScopeManager = VcsDirtyScopeManager.getInstance(project);
    vcsDirtyScopeManager.filePathsDirty(directlyAffected, null);
    vcsDirtyScopeManager.filesDirty(indirectlyAffected, null);
  }
private static void refreshPassedFiles(@NotNull Project project,
                                         @NotNull Collection<? extends FilePath> directlyAffected,
                                         @NotNull Collection<? extends VirtualFile> indirectlyAffected)