if (anchor == Anchor.LEADING) {
editor.replaceInvocationName(invocation, "setWidgetTopHeight");
setInvocationArgument(invocation, 1, bounds.top(), true);
}
if (anchor == Anchor.BOTH) {
editor.replaceInvocationName(invocation, "setWidgetTopBottom");
{
Expression rightExpression = DomGenerics.arguments(invocation).get(1);
editor.replaceInvocationArgument(invocation, 3, editor.getSource(rightExpression));
}
setInvocationArgument(invocation, 1, bounds.top(), true);