code: public Style createStyle(final List<Rule> styleRules) {
          final Rule[] rulesArray = styleRules.toArray(new Rule[0]);
          final FeatureTypeStyle featureTypeStyle = this.styleBuilder.createFeatureTypeStyle(null, rulesArray);
          final Style style = this.styleBuilder.createStyle();
          style.featureTypeStyles().add(featureTypeStyle);
          return style;
      }
docs: Create a style from a list of rules.
  
  @param styleRules the rules