String (PsiModifierList list) { if (list == null) return PsiModifier.PACKAGE_LOCAL; for (@PsiModifier.ModifierConstant String modifier : visibilityModifiers) { if (list.hasModifierProperty(modifier)) { return modifier; } } return PsiModifier.PACKAGE_LOCAL; }