"com.extjs.gxt.ui.client.widget.menu.Menu",
new ConstructorCreationSupport());
// prepare "new Menu()" source
String menuSource;
{
StatementTarget statementTarget =
new StatementTarget(AstNodeUtils.getEnclosingStatement(menuExpression), true);
NodeTarget nodeTarget = new NodeTarget(statementTarget);
menuSource = menu.getCreationSupport().add_getSource(nodeTarget);
}
// replace "null" with "new Menu()"
menuExpression = getEditor().replaceExpression(menuExpression, menuSource);