boolean (final PsiPackage psiPackage) { if (psiPackage == null || psiPackage.getName() == null) { return false; } final PsiModifierList pkgModifierList = psiPackage.getAnnotationList(); return pkgModifierList != null && pkgModifierList.hasAnnotation(AnnotationUtil.NON_NLS) || isPackageNonNls(psiPackage.getParentPackage()); }