void (final LwComponent component, final FormSourceCodeGenerator generator, final String variable, final String parentVariable) { @NonNls final String methodName = LwSplitPane.POSITION_LEFT.equals(component.getCustomLayoutConstraints()) ? "setLeftComponent" : "setRightComponent"; generator.startMethodCall(parentVariable, methodName); generator.pushVar(variable); generator.endMethod(); }