int bottom = getBounds().height - bounds.bottom();
if (anchor == Anchor.NONE) {
editor.removeEnclosingStatement(invocation);
}
if (anchor == Anchor.TRAILING) {
editor.replaceInvocationName(invocation, "setWidgetBottomHeight");
setInvocationArgument(invocation, 1, bottom, true);
}
if (anchor == Anchor.BOTH) {
editor.replaceInvocationName(invocation, "setWidgetTopBottom");
setInvocationArgument(invocation, 3, bottom, true);