void (@NotNull Project project, @NotNull PsiElement fieldName, @NotNull ModPsiUpdater updater) { final PsiElement parent = fieldName.getParent(); if (!(parent instanceof PsiField field)) return; if (field.getInitializer() != null) { return; } final PsiType type = field.getType(); final PsiElementFactory factory = JavaPsiFacade.getElementFactory(project); final PsiExpression initializer = factory.createExpressionFromText(TypeUtils.getDefaultValue(type), field); field.setInitializer(initializer); }