VirtualFile (@NotNull String name) { Path file = getTestDataPath().resolve(name); VirtualFile virtualFile = LocalFileSystem.getInstance().refreshAndFindFileByNioFile(file); assertNotNull("Can not find the file" + file, virtualFile); return virtualFile; }