void (VirtualFile root) { String name = root.getName(); nameCount.addTo(name, 1); for (int i=1; i<=name.length(); i++) { //String prefix = name.substring(0, i); //if (!prefixes.increment(prefix)) prefixes.put(prefix, 1); String suffix = name.substring(name.length()-i); suffixes.addTo(suffix, 1); } Collection<VirtualFile> cachedChildren = ((VirtualFileSystemEntry)root).getCachedChildren(); //VirtualFile[] cachedChildren = ((VirtualFileSystemEntry)root).getChildren(); for (VirtualFile cachedChild : cachedChildren) { compute(cachedChild); } }