List<VirtualFile> (@NotNull VirtualFile root) { List<VirtualFile> result = new ArrayList<>(); visitChildrenRecursively(root, new VirtualFileVisitor<Void>(VirtualFileVisitor.NO_FOLLOW_SYMLINKS) { @Override public boolean visitFile(@NotNull VirtualFile file) { result.add(file); return true; } }); return result; }