@Override
  public void writeVariableDeclarations(StringBuilder text, GrVariableDeclaration variableDeclaration) {
    GrTypeElement typeElement = variableDeclaration.getTypeElementGroovy();

    final GrModifierList modifierList = variableDeclaration.getModifierList();
    final PsiNameHelper nameHelper = PsiNameHelper.getInstance(variableDeclaration.getProject());
    for (final GrVariable variable : variableDeclaration.getVariables()) {
      String name = variable.getName();
      if (!nameHelper.isIdentifier(name)) {
        continue; //does not have a java image
      }

      ModifierListGenerator.writeModifiers(text, modifierList, STUB_FIELD_MODIFIERS, false);

      //type
      PsiType declaredType =
        typeElement == null ? PsiType.getJavaLangObject(variable.getManager(), variable.getResolveScope()) : typeElement.getType();

      TypeWriter.writeType(text, declaredType, variableDeclaration, classNameProvider);
      text.append(' ').append(name).append(" = ").append(getVariableInitializer(variable, declaredType));
      text.append(";\n");
    }
  }
@Override
  public void writeVariableDeclarations(StringBuilder text, GrVariableDeclaration variableDeclaration)