PsiJavaFile (String name) { String path = PathManagerEx.getTestDataPath() + TEST_DATA_PATH + "/pack/" + name + ".class"; VirtualFile file = LocalFileSystem.getInstance().refreshAndFindFileByPath(path); assertNotNull(path, file); PsiFile clsFile = PsiManager.getInstance(getProject()).findFile(file); assertTrue(String.valueOf(clsFile), clsFile instanceof ClsFileImpl); return (PsiJavaFile)clsFile; }