void (final LwContainer component, final FormSourceCodeGenerator generator, final String variable, final Class<? extends LayoutManager> layoutClass) { generator.startMethodCall(variable, "setLayout"); generator.startConstructor(layoutClass.getName()); generator.push(Utils.getHGap(component.getLayout())); generator.push(Utils.getVGap(component.getLayout())); generator.endConstructor(); generator.endMethod(); }