void (StringBuilder builder, ExpressionContext expressionContext, GrVariable variable, boolean wrapped, PsiType original) { builder.append(variable.getName()); final GrExpression initializer = variable.getInitializerGroovy(); if (initializer != null) { builder.append(" = "); if (wrapped) { builder.append("new ").append(GroovyCommonClassNames.GROOVY_LANG_REFERENCE); if (original != null) { builder.append('<'); TypeWriter.writeType(builder, original, variable, new GeneratorClassNameProvider()); builder.append('>'); } builder.append('('); } if (isCastNeeded(original, initializer, expressionContext)) { builder.append('('); TypeWriter.writeType(builder, original, initializer); builder.append(')'); } initializer.accept(new ExpressionGenerator(builder, expressionContext, original)); if (wrapped) { builder.append(')'); } } }