initializer = createMethodCallByAppCall((GrApplicationStatement)initializer);
}
assert initializer != null;
text.append(" = ").append(initializer.getText());
}
<BUG>GrTopStatement[] topStatements = ((GroovyFileBase)createGroovyFile(text.toString())).getTopStatements();
if (topStatements.length == 0 || !(topStatements[0] instanceof GrVariableDeclaration)) {
topStatements = ((GroovyFileBase)createGroovyFile("def " + text)).getTopStatements();
}</BUG>
if (topStatements.length == 0 || !(topStatements[0] instanceof GrVariableDeclaration)) {

initializer = createMethodCallByAppCall((GrApplicationStatement)initializer);
}
assert initializer != null;
text.append(" = ").append(initializer.getText());
}
GrTopStatement[] topStatements = createGroovyFile(text.toString()).getTopStatements();
if (topStatements.length == 0 || !(topStatements[0] instanceof GrVariableDeclaration)) {
topStatements = createGroovyFile("def " + text).getTopStatements();
}
if (topStatements.length == 0 || !(topStatements[0] instanceof GrVariableDeclaration)) {
