PsiPackage (@NotNull PsiElement location) { PsiPackage psiPackage = AbstractJavaTestConfigurationProducer.checkPackage(location); if (psiPackage == null) return null; if (psiPackage.getQualifiedName().isEmpty()) return null; return psiPackage; }