boolean (PsiMember member) { return checkPublicApi && (member.hasModifierProperty(PsiModifier.PUBLIC) || member.hasModifierProperty(PsiModifier.PROTECTED)) || checkPackageLocal && member.hasModifierProperty(PsiModifier.PACKAGE_LOCAL); }