void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { final PsiElement parent = element.getParent(); if (!(parent instanceof PsiField field)) { return; } final PsiModifierList modifierList = field.getModifierList(); if (modifierList == null) { return; } modifierList.setModifierProperty(PsiModifier.FINAL, true); modifierList.setModifierProperty(PsiModifier.STATIC, true); }