void (@NotNull VirtualFile dir, VirtualFile @NotNull [] vfs) { if (dir.isInLocalFileSystem() && dir.getFileSystem() != TempFileSystem.getInstance()) { String vfsPaths = Stream.of(vfs).map(VirtualFile::getPath).sorted().collect(Collectors.joining("\n")); File[] io = Objects.requireNonNull(new File(dir.getPath()).listFiles()); String ioPaths = Stream.of(io).map(f -> FileUtil.toSystemIndependentName(f.getPath())).sorted().collect(Collectors.joining("\n")); assertEquals(vfsPaths, ioPaths); } }