int (PsiMember member) { PsiClass container = null; if (member instanceof PsiClass) { container = (PsiClass)member; } else if (member instanceof PsiMethod) { container = member.getContainingClass(); } if (container != null && JUnitUtil.isJUnit5TestClass(container, false) && !JUnitUtil.isJUnit4TestClass(container, false) && !JUnitUtil.isJUnit3TestClass(container)) { return PsiUtil.ACCESS_LEVEL_PACKAGE_LOCAL; } if (member instanceof PsiField && AnnotationUtil.isAnnotated(member, JUnitCommonClassNames.ORG_JUNIT_JUPITER_API_EXTENSION_REGISTER_EXTENSION, 0)) { return PsiUtil.ACCESS_LEVEL_PACKAGE_LOCAL; } return ACCESS_LEVEL_INVALID; }