PsiDirectory (@NotNull final String dirName) { final PsiManager psiManager = PsiManager.getInstance(myFixture.getProject()); final VirtualFile vfsDir = myFixture.getTempDirFixture().getFile(dirName); assert vfsDir != null : "No vfs " + dirName; final PsiDirectory psiDirectory = psiManager.findDirectory(vfsDir); assert psiDirectory != null : "No psi " + dirName; return psiDirectory; }