PsiDirectory (PsiFile input) { VirtualFile jarRoot = getJarRoot(input); if (myProject != null && jarRoot != null) { return PsiManager.getInstance(myProject).findDirectory(jarRoot); } else { return null; } }