boolean () { final Project project = myManager.getProject(); final PsiPackage aPackage = JavaPsiFacade.getInstance(project).findPackage(myQualifiedName); return aPackage != null && aPackage.getDirectories(GlobalSearchScope.projectScope(project)).length > 0; }