boolean (PsiMember member, PsiClass psiClass, PsiJavaCodeReferenceElement reference) { if (isModulePublicApi(member) && !isModulePublicApi(psiClass) && isInModuleSource(psiClass)) { myHolder.registerProblem(reference, InspectionGadgetsBundle.message("class.escapes.defined.scope.java9.modules.descriptor", myModuleName)); return true; } return false; }