code: def style(self):
          
          LOGGER.info('ANALYSIS : Styling')
          classes = generate_classified_legend(
              self.analysis_impacted,
              self.exposure,
              self.hazard,
              self.use_rounding,
              self.debug_mode)
  
          # Let's style layers which have a geometry and have hazard_class
          hazard_class = hazard_class_field['key']
          for layer in self._outputs():
              without_geometries = [
                  QgsWkbTypes.NullGeometry,
                  QgsWkbTypes.UnknownGeometry]
              if layer.geometryType() not in without_geometries:
                  display_not_exposed = False
                  if layer == self.impact or self.debug_mode:
                      display_not_exposed = True
  
                  if layer.keywords['inasafe_fields'].get(hazard_class):
                      hazard_class_style(layer, classes, display_not_exposed)
  
          # Let's style the aggregation and analysis layer.
          simple_polygon_without_brush(
              self.aggregation_summary, aggregation_width, aggregation_color)
          simple_polygon_without_brush(
              self.analysis_impacted, analysis_width, analysis_color)
  
          # Styling is finished, save them as QML
          for layer in self._outputs():
              layer.saveDefaultStyle()
docs: Function to apply some styles to the layers.