PsiDirectory () { final Project project = getElement().getProject(); final VirtualFile projectDir = project.getBaseDir(); if (projectDir != null) { final PsiManager psiManager = PsiManager.getInstance(project); return psiManager.findDirectory(projectDir); } return null; }