@Override
 public void applyStyle(final ElementMap item, final DocumentParser doc, final Widget widget) {
   this.doc = doc;
   this.elementMaps.push(item);
   final ElementMap elementMap = this.elementMaps.peek();
   final DecoratorAppearance appearance = widget.getAppearance();
   appearance.setElementMap(elementMap);
   widget.addBasicElement(appearance);
   appearance.onAttributesInitialized();
   final Widget widgetByThemeElementName =
       appearance
           .getParentOfType(Widget.class)
           .getWidgetByThemeElementName("horizontalIncreaseButton", false);
   if (widgetByThemeElementName != null) {
     final Padding element = new Padding();
     element.onCheckOut();
     element.setElementMap(elementMap);
     element.setInsets(new Insets(1, 1, 1, 1));
     widgetByThemeElementName.addBasicElement(element);
     element.onAttributesInitialized();
     element.onChildrenAdded();
     final DecoratorAppearance appearance2 = widgetByThemeElementName.getAppearance();
     appearance2.setElementMap(elementMap);
     appearance2.setState("default");
     widgetByThemeElementName.addBasicElement(appearance2);
     appearance2.onAttributesInitialized();
     final PixmapElement checkOut = PixmapElement.checkOut();
     checkOut.setElementMap(elementMap);
     checkOut.setHeight(12);
     checkOut.setPosition(Alignment17.CENTER);
     checkOut.setTexture(this.doc.getTexture("default_1.tga"));
     checkOut.setWidth(10);
     checkOut.setX(40);
     checkOut.setY(518);
     appearance2.addBasicElement(checkOut);
     checkOut.onAttributesInitialized();
     checkOut.onChildrenAdded();
     appearance2.onChildrenAdded();
     final DecoratorAppearance appearance3 = widgetByThemeElementName.getAppearance();
     appearance3.setElementMap(elementMap);
     appearance3.setState("mouseHover");
     widgetByThemeElementName.addBasicElement(appearance3);
     appearance3.onAttributesInitialized();
     final PixmapElement checkOut2 = PixmapElement.checkOut();
     checkOut2.setElementMap(elementMap);
     checkOut2.setHeight(12);
     checkOut2.setPosition(Alignment17.CENTER);
     checkOut2.setTexture(this.doc.getTexture("default_1.tga"));
     checkOut2.setWidth(10);
     checkOut2.setX(51);
     checkOut2.setY(310);
     appearance3.addBasicElement(checkOut2);
     checkOut2.onAttributesInitialized();
     checkOut2.onChildrenAdded();
     appearance3.onChildrenAdded();
     final DecoratorAppearance appearance4 = widgetByThemeElementName.getAppearance();
     appearance4.setElementMap(elementMap);
     appearance4.setState("pressed");
     widgetByThemeElementName.addBasicElement(appearance4);
     appearance4.onAttributesInitialized();
     final PixmapElement checkOut3 = PixmapElement.checkOut();
     checkOut3.setElementMap(elementMap);
     checkOut3.setHeight(12);
     checkOut3.setPosition(Alignment17.CENTER);
     checkOut3.setTexture(this.doc.getTexture("default_1.tga"));
     checkOut3.setWidth(10);
     checkOut3.setX(800);
     checkOut3.setY(204);
     appearance4.addBasicElement(checkOut3);
     checkOut3.onAttributesInitialized();
     checkOut3.onChildrenAdded();
     appearance4.onChildrenAdded();
   }
   final Widget widgetByThemeElementName2 =
       appearance
           .getParentOfType(Widget.class)
           .getWidgetByThemeElementName("horizontalDecreaseButton", false);
   if (widgetByThemeElementName2 != null) {
     final Padding element2 = new Padding();
     element2.onCheckOut();
     element2.setElementMap(elementMap);
     element2.setInsets(new Insets(1, 1, 1, 1));
     widgetByThemeElementName2.addBasicElement(element2);
     element2.onAttributesInitialized();
     element2.onChildrenAdded();
     final DecoratorAppearance appearance5 = widgetByThemeElementName2.getAppearance();
     appearance5.setElementMap(elementMap);
     appearance5.setState("default");
     widgetByThemeElementName2.addBasicElement(appearance5);
     appearance5.onAttributesInitialized();
     final PixmapElement checkOut4 = PixmapElement.checkOut();
     checkOut4.setElementMap(elementMap);
     checkOut4.setHeight(12);
     checkOut4.setPosition(Alignment17.CENTER);
     checkOut4.setTexture(this.doc.getTexture("default_1.tga"));
     checkOut4.setWidth(10);
     checkOut4.setX(51);
     checkOut4.setY(340);
     appearance5.addBasicElement(checkOut4);
     checkOut4.onAttributesInitialized();
     checkOut4.onChildrenAdded();
     appearance5.onChildrenAdded();
     final DecoratorAppearance appearance6 = widgetByThemeElementName2.getAppearance();
     appearance6.setElementMap(elementMap);
     appearance6.setState("mouseHover");
     widgetByThemeElementName2.addBasicElement(appearance6);
     appearance6.onAttributesInitialized();
     final PixmapElement checkOut5 = PixmapElement.checkOut();
     checkOut5.setElementMap(elementMap);
     checkOut5.setHeight(12);
     checkOut5.setPosition(Alignment17.CENTER);
     checkOut5.setTexture(this.doc.getTexture("default_1.tga"));
     checkOut5.setWidth(10);
     checkOut5.setX(51);
     checkOut5.setY(325);
     appearance6.addBasicElement(checkOut5);
     checkOut5.onAttributesInitialized();
     checkOut5.onChildrenAdded();
     appearance6.onChildrenAdded();
     final DecoratorAppearance appearance7 = widgetByThemeElementName2.getAppearance();
     appearance7.setElementMap(elementMap);
     appearance7.setState("pressed");
     widgetByThemeElementName2.addBasicElement(appearance7);
     appearance7.onAttributesInitialized();
     final PixmapElement checkOut6 = PixmapElement.checkOut();
     checkOut6.setElementMap(elementMap);
     checkOut6.setHeight(12);
     checkOut6.setPosition(Alignment17.CENTER);
     checkOut6.setTexture(this.doc.getTexture("default_1.tga"));
     checkOut6.setWidth(10);
     checkOut6.setX(40);
     checkOut6.setY(533);
     appearance7.addBasicElement(checkOut6);
     checkOut6.onAttributesInitialized();
     checkOut6.onChildrenAdded();
     appearance7.onChildrenAdded();
   }
   final Widget widgetByThemeElementName3 =
       appearance
           .getParentOfType(Widget.class)
           .getWidgetByThemeElementName("horizontalSlider", false);
   if (widgetByThemeElementName3 != null) {
     final DecoratorAppearance appearance8 = widgetByThemeElementName3.getAppearance();
     appearance8.setElementMap(elementMap);
     widgetByThemeElementName3.addBasicElement(appearance8);
     appearance8.onAttributesInitialized();
     final Widget widgetByThemeElementName4 =
         appearance8
             .getParentOfType(Widget.class)
             .getWidgetByThemeElementName("horizontalButton", false);
     if (widgetByThemeElementName4 != null) {
       final DecoratorAppearance appearance9 = widgetByThemeElementName4.getAppearance();
       appearance9.setElementMap(elementMap);
       appearance9.setState("default");
       widgetByThemeElementName4.addBasicElement(appearance9);
       appearance9.onAttributesInitialized();
       final PixmapBorder element3 = new PixmapBorder();
       element3.onCheckOut();
       element3.setElementMap(elementMap);
       appearance9.addBasicElement(element3);
       element3.onAttributesInitialized();
       final PixmapElement checkOut7 = PixmapElement.checkOut();
       checkOut7.setElementMap(elementMap);
       checkOut7.setHeight(4);
       checkOut7.setPosition(Alignment17.NORTH_WEST);
       checkOut7.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut7.setWidth(4);
       checkOut7.setX(892);
       checkOut7.setY(240);
       element3.addBasicElement(checkOut7);
       checkOut7.onAttributesInitialized();
       checkOut7.onChildrenAdded();
       final PixmapElement checkOut8 = PixmapElement.checkOut();
       checkOut8.setElementMap(elementMap);
       checkOut8.setHeight(4);
       checkOut8.setPosition(Alignment17.NORTH);
       checkOut8.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut8.setWidth(5);
       checkOut8.setX(713);
       checkOut8.setY(216);
       element3.addBasicElement(checkOut8);
       checkOut8.onAttributesInitialized();
       checkOut8.onChildrenAdded();
       final PixmapElement checkOut9 = PixmapElement.checkOut();
       checkOut9.setElementMap(elementMap);
       checkOut9.setHeight(4);
       checkOut9.setPosition(Alignment17.NORTH_EAST);
       checkOut9.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut9.setWidth(4);
       checkOut9.setX(538);
       checkOut9.setY(254);
       element3.addBasicElement(checkOut9);
       checkOut9.onAttributesInitialized();
       checkOut9.onChildrenAdded();
       final PixmapElement checkOut10 = PixmapElement.checkOut();
       checkOut10.setElementMap(elementMap);
       checkOut10.setHeight(13);
       checkOut10.setPosition(Alignment17.EAST);
       checkOut10.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut10.setWidth(4);
       checkOut10.setX(876);
       checkOut10.setY(733);
       element3.addBasicElement(checkOut10);
       checkOut10.onAttributesInitialized();
       checkOut10.onChildrenAdded();
       final PixmapElement checkOut11 = PixmapElement.checkOut();
       checkOut11.setElementMap(elementMap);
       checkOut11.setHeight(4);
       checkOut11.setPosition(Alignment17.SOUTH_EAST);
       checkOut11.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut11.setWidth(4);
       checkOut11.setX(977);
       checkOut11.setY(211);
       element3.addBasicElement(checkOut11);
       checkOut11.onAttributesInitialized();
       checkOut11.onChildrenAdded();
       final PixmapElement checkOut12 = PixmapElement.checkOut();
       checkOut12.setElementMap(elementMap);
       checkOut12.setHeight(4);
       checkOut12.setPosition(Alignment17.SOUTH);
       checkOut12.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut12.setWidth(5);
       checkOut12.setX(936);
       checkOut12.setY(221);
       element3.addBasicElement(checkOut12);
       checkOut12.onAttributesInitialized();
       checkOut12.onChildrenAdded();
       final PixmapElement checkOut13 = PixmapElement.checkOut();
       checkOut13.setElementMap(elementMap);
       checkOut13.setHeight(4);
       checkOut13.setPosition(Alignment17.SOUTH_WEST);
       checkOut13.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut13.setWidth(4);
       checkOut13.setX(834);
       checkOut13.setY(225);
       element3.addBasicElement(checkOut13);
       checkOut13.onAttributesInitialized();
       checkOut13.onChildrenAdded();
       final PixmapElement checkOut14 = PixmapElement.checkOut();
       checkOut14.setElementMap(elementMap);
       checkOut14.setHeight(13);
       checkOut14.setPosition(Alignment17.WEST);
       checkOut14.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut14.setWidth(4);
       checkOut14.setX(974);
       checkOut14.setY(596);
       element3.addBasicElement(checkOut14);
       checkOut14.onAttributesInitialized();
       checkOut14.onChildrenAdded();
       element3.onChildrenAdded();
       final PixmapBackground checkOut15 = PixmapBackground.checkOut();
       checkOut15.setElementMap(elementMap);
       checkOut15.setEnabled(true);
       checkOut15.setScaled(true);
       appearance9.addBasicElement(checkOut15);
       checkOut15.onAttributesInitialized();
       final PixmapElement checkOut16 = PixmapElement.checkOut();
       checkOut16.setElementMap(elementMap);
       checkOut16.setHeight(1);
       checkOut16.setPosition(Alignment17.CENTER);
       checkOut16.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut16.setWidth(4);
       checkOut16.setX(939);
       checkOut16.setY(201);
       checkOut15.addBasicElement(checkOut16);
       checkOut16.onAttributesInitialized();
       checkOut16.onChildrenAdded();
       checkOut15.onChildrenAdded();
       final PixmapElement checkOut17 = PixmapElement.checkOut();
       checkOut17.setElementMap(elementMap);
       checkOut17.setHeight(6);
       checkOut17.setPosition(Alignment17.CENTER);
       checkOut17.setRotation(GeometrySprite.SpriteRotation.QUARTER_CLOCKWISE);
       checkOut17.setTexture(this.doc.getTexture("default_0.tga"));
       checkOut17.setWidth(4);
       checkOut17.setX(403);
       checkOut17.setY(279);
       appearance9.addBasicElement(checkOut17);
       checkOut17.onAttributesInitialized();
       checkOut17.onChildrenAdded();
       appearance9.onChildrenAdded();
       final DecoratorAppearance appearance10 = widgetByThemeElementName4.getAppearance();
       appearance10.setElementMap(elementMap);
       appearance10.setState("mouseHover");
       widgetByThemeElementName4.addBasicElement(appearance10);
       appearance10.onAttributesInitialized();
       final PixmapBorder element4 = new PixmapBorder();
       element4.onCheckOut();
       element4.setElementMap(elementMap);
       appearance10.addBasicElement(element4);
       element4.onAttributesInitialized();
       final PixmapElement checkOut18 = PixmapElement.checkOut();
       checkOut18.setElementMap(elementMap);
       checkOut18.setHeight(4);
       checkOut18.setPosition(Alignment17.NORTH_WEST);
       checkOut18.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut18.setWidth(4);
       checkOut18.setX(805);
       checkOut18.setY(192);
       element4.addBasicElement(checkOut18);
       checkOut18.onAttributesInitialized();
       checkOut18.onChildrenAdded();
       final PixmapElement checkOut19 = PixmapElement.checkOut();
       checkOut19.setElementMap(elementMap);
       checkOut19.setHeight(4);
       checkOut19.setPosition(Alignment17.NORTH);
       checkOut19.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut19.setWidth(5);
       checkOut19.setX(215);
       checkOut19.setY(209);
       element4.addBasicElement(checkOut19);
       checkOut19.onAttributesInitialized();
       checkOut19.onChildrenAdded();
       final PixmapElement checkOut20 = PixmapElement.checkOut();
       checkOut20.setElementMap(elementMap);
       checkOut20.setHeight(4);
       checkOut20.setPosition(Alignment17.NORTH_EAST);
       checkOut20.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut20.setWidth(4);
       checkOut20.setX(538);
       checkOut20.setY(240);
       element4.addBasicElement(checkOut20);
       checkOut20.onAttributesInitialized();
       checkOut20.onChildrenAdded();
       final PixmapElement checkOut21 = PixmapElement.checkOut();
       checkOut21.setElementMap(elementMap);
       checkOut21.setHeight(13);
       checkOut21.setPosition(Alignment17.EAST);
       checkOut21.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut21.setWidth(4);
       checkOut21.setX(876);
       checkOut21.setY(749);
       element4.addBasicElement(checkOut21);
       checkOut21.onAttributesInitialized();
       checkOut21.onChildrenAdded();
       final PixmapElement checkOut22 = PixmapElement.checkOut();
       checkOut22.setElementMap(elementMap);
       checkOut22.setHeight(4);
       checkOut22.setPosition(Alignment17.SOUTH_EAST);
       checkOut22.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut22.setWidth(4);
       checkOut22.setX(834);
       checkOut22.setY(232);
       element4.addBasicElement(checkOut22);
       checkOut22.onAttributesInitialized();
       checkOut22.onChildrenAdded();
       final PixmapElement checkOut23 = PixmapElement.checkOut();
       checkOut23.setElementMap(elementMap);
       checkOut23.setHeight(4);
       checkOut23.setPosition(Alignment17.SOUTH);
       checkOut23.setTexture(this.doc.getTexture("default_0.tga"));
       checkOut23.setWidth(5);
       checkOut23.setX(895);
       checkOut23.setY(481);
       element4.addBasicElement(checkOut23);
       checkOut23.onAttributesInitialized();
       checkOut23.onChildrenAdded();
       final PixmapElement checkOut24 = PixmapElement.checkOut();
       checkOut24.setElementMap(elementMap);
       checkOut24.setHeight(4);
       checkOut24.setPosition(Alignment17.SOUTH_WEST);
       checkOut24.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut24.setWidth(4);
       checkOut24.setX(892);
       checkOut24.setY(247);
       element4.addBasicElement(checkOut24);
       checkOut24.onAttributesInitialized();
       checkOut24.onChildrenAdded();
       final PixmapElement checkOut25 = PixmapElement.checkOut();
       checkOut25.setElementMap(elementMap);
       checkOut25.setHeight(13);
       checkOut25.setPosition(Alignment17.WEST);
       checkOut25.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut25.setWidth(4);
       checkOut25.setX(134);
       checkOut25.setY(611);
       element4.addBasicElement(checkOut25);
       checkOut25.onAttributesInitialized();
       checkOut25.onChildrenAdded();
       element4.onChildrenAdded();
       final PixmapBackground checkOut26 = PixmapBackground.checkOut();
       checkOut26.setElementMap(elementMap);
       checkOut26.setEnabled(true);
       checkOut26.setScaled(true);
       appearance10.addBasicElement(checkOut26);
       checkOut26.onAttributesInitialized();
       final PixmapElement checkOut27 = PixmapElement.checkOut();
       checkOut27.setElementMap(elementMap);
       checkOut27.setHeight(2);
       checkOut27.setPosition(Alignment17.CENTER);
       checkOut27.setTexture(this.doc.getTexture("default_0.tga"));
       checkOut27.setWidth(4);
       checkOut27.setX(193);
       checkOut27.setY(622);
       checkOut26.addBasicElement(checkOut27);
       checkOut27.onAttributesInitialized();
       checkOut27.onChildrenAdded();
       checkOut26.onChildrenAdded();
       final PixmapElement checkOut28 = PixmapElement.checkOut();
       checkOut28.setElementMap(elementMap);
       checkOut28.setHeight(6);
       checkOut28.setPosition(Alignment17.CENTER);
       checkOut28.setRotation(GeometrySprite.SpriteRotation.QUARTER_CLOCKWISE);
       checkOut28.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut28.setWidth(4);
       checkOut28.setX(46);
       checkOut28.setY(386);
       appearance10.addBasicElement(checkOut28);
       checkOut28.onAttributesInitialized();
       checkOut28.onChildrenAdded();
       appearance10.onChildrenAdded();
       final DecoratorAppearance appearance11 = widgetByThemeElementName4.getAppearance();
       appearance11.setElementMap(elementMap);
       appearance11.setState("pressed");
       widgetByThemeElementName4.addBasicElement(appearance11);
       appearance11.onAttributesInitialized();
       final PixmapBorder element5 = new PixmapBorder();
       element5.onCheckOut();
       element5.setElementMap(elementMap);
       appearance11.addBasicElement(element5);
       element5.onAttributesInitialized();
       final PixmapElement checkOut29 = PixmapElement.checkOut();
       checkOut29.setElementMap(elementMap);
       checkOut29.setHeight(4);
       checkOut29.setPosition(Alignment17.NORTH_WEST);
       checkOut29.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut29.setWidth(4);
       checkOut29.setX(713);
       checkOut29.setY(202);
       element5.addBasicElement(checkOut29);
       checkOut29.onAttributesInitialized();
       checkOut29.onChildrenAdded();
       final PixmapElement checkOut30 = PixmapElement.checkOut();
       checkOut30.setElementMap(elementMap);
       checkOut30.setHeight(4);
       checkOut30.setPosition(Alignment17.NORTH);
       checkOut30.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut30.setWidth(5);
       checkOut30.setX(215);
       checkOut30.setY(202);
       element5.addBasicElement(checkOut30);
       checkOut30.onAttributesInitialized();
       checkOut30.onChildrenAdded();
       final PixmapElement checkOut31 = PixmapElement.checkOut();
       checkOut31.setElementMap(elementMap);
       checkOut31.setHeight(4);
       checkOut31.setPosition(Alignment17.NORTH_EAST);
       checkOut31.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut31.setWidth(4);
       checkOut31.setX(1015);
       checkOut31.setY(193);
       element5.addBasicElement(checkOut31);
       checkOut31.onAttributesInitialized();
       checkOut31.onChildrenAdded();
       final PixmapElement checkOut32 = PixmapElement.checkOut();
       checkOut32.setElementMap(elementMap);
       checkOut32.setHeight(13);
       checkOut32.setPosition(Alignment17.EAST);
       checkOut32.setTexture(this.doc.getTexture("default_0.tga"));
       checkOut32.setWidth(4);
       checkOut32.setX(828);
       checkOut32.setY(9);
       element5.addBasicElement(checkOut32);
       checkOut32.onAttributesInitialized();
       checkOut32.onChildrenAdded();
       final PixmapElement checkOut33 = PixmapElement.checkOut();
       checkOut33.setElementMap(elementMap);
       checkOut33.setHeight(4);
       checkOut33.setPosition(Alignment17.SOUTH_EAST);
       checkOut33.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut33.setWidth(4);
       checkOut33.setX(110);
       checkOut33.setY(219);
       element5.addBasicElement(checkOut33);
       checkOut33.onAttributesInitialized();
       checkOut33.onChildrenAdded();
       final PixmapElement checkOut34 = PixmapElement.checkOut();
       checkOut34.setElementMap(elementMap);
       checkOut34.setHeight(4);
       checkOut34.setPosition(Alignment17.SOUTH);
       checkOut34.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut34.setWidth(5);
       checkOut34.setX(684);
       checkOut34.setY(356);
       element5.addBasicElement(checkOut34);
       checkOut34.onAttributesInitialized();
       checkOut34.onChildrenAdded();
       final PixmapElement checkOut35 = PixmapElement.checkOut();
       checkOut35.setElementMap(elementMap);
       checkOut35.setHeight(4);
       checkOut35.setPosition(Alignment17.SOUTH_WEST);
       checkOut35.setTexture(this.doc.getTexture("default_1.tga"));
       checkOut35.setWidth(4);
       checkOut35.setX(834);
       checkOut35.setY(253);
       element5.addBasicElement(checkOut35);
       checkOut35.onAttributesInitialized();
       checkOut35.onChildrenAdded();
       this.method0(element5);
       element5.onChildrenAdded();
       this.method1(appearance11);
       this.method2(appearance11);
       appearance11.onChildrenAdded();
     }
     this.method3(appearance8);
     appearance8.onChildrenAdded();
   }
   appearance.onChildrenAdded();
 }