void () { File file = tempDir.newFile("some-new-file"); VirtualFile ioFile = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(file); VirtualFile nioFile = VirtualFileManager.getInstance().refreshAndFindFileByNioPath(file.toPath()); assertNotNull(ioFile); assertNotNull(nioFile); assertEquals(nioFile, ioFile); assertEquals(file.toPath(), nioFile.toNioPath()); assertEquals(file.toPath(), ioFile.toNioPath()); }