void (@NotNull VirtualFile f) { if (f.isDirectory() && USE_WORKSPACE_TRAVERSAL) { if (createRecursivelyUsingWorkspaceTraversal(f)) return; } VfsUtilCore.visitChildrenRecursively(f, new VirtualFileVisitor<Void>() { @Override public boolean visitFile(@NotNull VirtualFile f) { if (isVersioned(f)) { myVcs.created(myGateway.getPathOrUrl(f), f.isDirectory()); } return true; } @Override public Iterable<VirtualFile> getChildrenIterable(@NotNull VirtualFile f) { // For unversioned files we try to get cached children in hope that they are already generated by content root manager: // cached children may mean that there are versioned sub-folders or sub-files. return myGateway.isVersioned(f, true) ? IdeaGateway.loadAndIterateChildren(f) : IdeaGateway.iterateDBChildren(f); } }); }