"ident = <" + identifier + "> initializer = " + (initializer == null ? "_null_" : ("<" + initializer.getText()) + ">"));
return (GrVariableDeclaration) body.getMemberDeclarations()[0];
}
@Override
public GrVariableDeclaration createFieldDeclarationFromText(String text) {
<BUG>final GroovyFile file = (GroovyFile)createGroovyFile("class X{\n" + text + "\n}");
final PsiClass psiClass = file.getClasses()[0];</BUG>
return (GrVariableDeclaration)psiClass.getFields()[0].getParent();
}
private static StringBuilder writeModifiers(String[] modifiers) {

"ident = <" + identifier + "> initializer = " + (initializer == null ? "_null_" : ("<" + initializer.getText()) + ">"));
return (GrVariableDeclaration) body.getMemberDeclarations()[0];
}
@Override
public GrVariableDeclaration createFieldDeclarationFromText(String text) {
final GroovyFile file = createGroovyFile("class X{\n" + text + "\n}");
final PsiClass psiClass = file.getClasses()[0];
return (GrVariableDeclaration)psiClass.getFields()[0].getParent();
}
private static StringBuilder writeModifiers(String[] modifiers) {
