void (@NotNull Project project, @NotNull PsiElement classNameIdentifier, @NotNull ModPsiUpdater updater) { final PsiClass psiClass = (PsiClass)classNameIdentifier.getParent(); if (psiClass == null) { return; } String modifier = m_hasInheritors? PsiModifier.PROTECTED : PsiModifier.PRIVATE; final PsiMethod[] constructors = psiClass.getConstructors(); for (PsiMethod constructor : constructors) { final PsiModifierList modifierList = constructor.getModifierList(); modifierList.setModifierProperty(modifier, true); } }