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