void (StringBuilder buffer, PsiVariable variable) { PsiExpression initializer = variable.getInitializer(); if (initializer != null) { JavaDocInfoGenerator generator = JavaDocInfoGeneratorFactory.create(variable.getProject(), null); generator.appendExpressionValue(buffer, initializer); PsiExpression constantInitializer = JavaDocInfoGenerator.calcInitializerExpression(variable); if (constantInitializer != null) { generator.appendExpressionValue(buffer, constantInitializer); } } else if (variable instanceof PsiEnumConstant enumConstant) { PsiExpressionList list = enumConstant.getArgumentList(); if (JavaDocInfoGenerator.canComputeArguments(list)) { JavaDocInfoGenerator generator = JavaDocInfoGeneratorFactory.create(variable.getProject(), null); generator.generateExpressionText(enumConstant.getArgumentList(), buffer); } } }