private void generateBorder(final LwContainer container,
                              final String variable,
                              final GlobalSearchScope scope) {
    final BorderType borderType = container.getBorderType();
    final StringDescriptor borderTitle = container.getBorderTitle();
    final Insets borderSize = container.getBorderSize();
    final String borderFactoryMethodName = borderType.getBorderFactoryMethodName();

    final boolean borderNone = borderType.equals(BorderType.NONE);
    if (!borderNone || borderTitle != null) {
      startMethodCall(variable, "setBorder");

      String borderFactoryName = borderFactoryClassName(container, borderTitle, scope);

      startStaticMethodCall(borderFactoryName, "createTitledBorder");

      if (!borderNone) {
        pushBorderFactoryMethod(container, borderType, borderSize, borderFactoryMethodName);
      }
      else {
        push((String) null);
      }
      pushBorderProperties(container, variable, borderTitle);

      endMethod(); // createTitledBorder
      endMethod(); // setBorder
    }
  }
private void generateBorder(final LwContainer container,
                              final String variable,
                              final GlobalSearchScope scope)