CodeEditUtil.markToReformatBefore(statement.getNode().findLeafElementAt(0), true);
return statement;
}
@Override
public GrEnumConstant createEnumConstantFromText(String text) {
<BUG>GroovyFile file = (GroovyFile)createGroovyFile("enum E{" + text + "}");
final GrEnumTypeDefinition enumClass = (GrEnumTypeDefinition)file.getClasses()[0];</BUG>
return enumClass.getEnumConstants()[0];
}
public GrVariableDeclaration createFieldDeclaration(String[] modifiers,

CodeEditUtil.markToReformatBefore(statement.getNode().findLeafElementAt(0), true);
return statement;
}
@Override
public GrEnumConstant createEnumConstantFromText(String text) {
GroovyFile file = createGroovyFile("enum E{" + text + "}");
final GrEnumTypeDefinition enumClass = (GrEnumTypeDefinition)file.getClasses()[0];
return enumClass.getEnumConstants()[0];
}
public GrVariableDeclaration createFieldDeclaration(String[] modifiers,
