boolean (@Nullable PsiClass psiClass) { PsiJavaModule javaModule = getJavaModule(psiClass); return javaModule != null && (isServiceClass(psiClass, javaModule) || isInExportedPackage(psiClass, javaModule)); }