void (final Project project, final List<? extends Change> changesToRefresh) { VcsDirtyScopeManager dirtyScopeManager = VcsDirtyScopeManager.getInstance(myProject); ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager.getInstance(myProject); for (FilePath filePath : ChangesUtil.iteratePaths(changesToRefresh)) { markDirty(filePath, vcsManager, dirtyScopeManager); } RefreshVFsSynchronously.updateChangesForRollback(changesToRefresh); WaitForProgressToShow.runOrInvokeLaterAboveProgress(myAfterRefresh, null, project); }