void (VirtualFile f, final VFileEvent event) { VfsUtilCore.visitChildrenRecursively(f, new VirtualFileVisitor<Void>() { @Override public boolean visitFile(@NotNull VirtualFile f) { if (isRelevant(f.getPath())) deleteFile(f, event); return true; } @Nullable @Override public Iterable<VirtualFile> getChildrenIterable(@NotNull VirtualFile f) { return f.isDirectory() && f instanceof NewVirtualFile ? ((NewVirtualFile)f).iterInDbChildren() : null; } }); }