String (@PsiModifier.ModifierConstant String curAccess, RefElement refElement) { if (PsiModifier.PUBLIC.equals(curAccess)) { return isTopLevelClass(refElement) ? PsiModifier.PACKAGE_LOCAL : PsiModifier.PROTECTED; } if (PsiModifier.PROTECTED.equals(curAccess)) { return SUGGEST_PACKAGE_LOCAL_FOR_MEMBERS ? PsiModifier.PACKAGE_LOCAL : PsiModifier.PRIVATE; } if (PsiModifier.PACKAGE_LOCAL.equals(curAccess)) { return PsiModifier.PRIVATE; } return null; }