void (@NotNull Project project, @NotNull PsiElement nameIdentifier, @NotNull ModPsiUpdater updater) { PsiVariable psiVariable = PsiTreeUtil.getParentOfType(nameIdentifier, PsiVariable.class, false); if (psiVariable == null) return; psiVariable.normalizeDeclaration(); PsiUtil.setModifierProperty(psiVariable, PsiModifier.FINAL, true); }