PsiFile (String filePath) { String path = filePath.replace(File.separatorChar, '/'); VirtualFile copy = findFileInTempDir(path); assertNotNull("could not find results file " + path, copy); PsiFile psiFile = myPsiManager.findFile(copy); assertNotNull(copy.getPath(), psiFile); return psiFile; }