void (final LwComponent component, final GeneratorAdapter generator, final int componentLocal, final int parentLocal, final String formClassName) { GridBagConstraints gbc; if (component.getCustomLayoutConstraints() instanceof GridBagConstraints) { gbc = (GridBagConstraints) component.getCustomLayoutConstraints(); } else { gbc = new GridBagConstraints(); } GridBagConverter.constraintsToGridBag(component.getConstraints(), gbc); generateGridBagConstraints(generator, gbc, componentLocal, parentLocal); }