void () { Ref<VirtualFile> skip = Ref.create(); doTest( file -> { if ("d1".equals(file.getName())) skip.set(file); return "f11.1".equals(file.getName()) ? skip.get() : VirtualFileVisitor.CONTINUE; }, null, """ -> / [0] -> d1 [1] -> d11 [2] -> f11.1 [3] -> d2 [1] -> f2.1 [2] <- f2.1 [3] -> f2.2 [2] <- f2.2 [3] <- d2 [2] -> d3 [1] -> d3_rec_link [2] <- d3_rec_link [3] <- d3 [2] <- / [1] """); }