void (@NotNull Collection<? extends VirtualFile> files, @NotNull Project project, boolean async) { if (files.isEmpty()) return; for (var file : files) { if (file.getFileSystem() instanceof ArchiveFileSystem afs) { afs.clearArchiveCache(file); } if (file.isDirectory()) { file.getChildren(); } if (file instanceof NewVirtualFile nvf) { nvf.markClean(); nvf.markDirtyRecursively(); } } RefreshQueue.getInstance().refresh(async, true, () -> postRefresh(project, files), files); }