public ResourcesPoet addStyle(String name,@Nullable String parentRef,@Nullable List<StyleItem> styleItems){
  Element element=document.createElement("style");
  element.setAttribute("name",name);
  if (parentRef != null) {
    element.setAttribute("parent",parentRef);
  }
  if (styleItems != null) {
    for (    StyleItem item : styleItems) {
      Element valueElement=document.createElement("item");
      valueElement.setAttribute("name",item.name);
      valueElement.appendChild(document.createTextNode(item.value));
      element.appendChild(valueElement);
    }
  }
  resourceElement.appendChild(element);
  return this;
}

public ResourcesPoet addStyle ( String name , @ Nullable String parentRef , @ Nullable List < StyleItem > styleItems ) { Element element = document . createElement ( "style" ) ; element . setAttribute ( "name" , name ) ; if ( parentRef != null ) { element . setAttribute ( "parent" , parentRef ) ; } if ( styleItems != null ) { for ( StyleItem item : styleItems ) { Element valueElement = document . createElement ( "item" ) ; valueElement . setAttribute ( "name" , item . name ) ; valueElement . appendChild ( document . createTextNode ( item . value ) ) ; element . appendChild ( valueElement ) ; } } resourceElement . appendChild ( element ) ; return this ; }
add a style to the config
