void (PsiMember owner, PsiElement place) { PsiModifierList modifierList = owner.getModifierList(); LOG.assertTrue(modifierList != null); final String visibilityModifier = VisibilityUtil.getVisibilityModifier(modifierList); int index; for (index = 0; index < visibilityModifiers.length; index++) { String modifier = visibilityModifiers[index]; if (modifier.equals(visibilityModifier)) break; } for (; index < visibilityModifiers.length && !isAccessible(place, owner); index++) { @PsiModifier.ModifierConstant String modifier = visibilityModifiers[index]; com.intellij.psi.util.PsiUtil.setModifierProperty(owner, modifier, true); } }