code: def list_compatible_canvas_layers(self):
          
          italic_font = QFont()
          italic_font.setItalic(True)
          list_widget = self.lstCanvasHazLayers
          # Add compatible layers
          list_widget.clear()
          for layer in self.parent.get_compatible_canvas_layers('hazard'):
              item = QListWidgetItem(layer['name'], list_widget)
              item.setData(Qt.UserRole, layer['id'])
              if not layer['keywords']:
                  item.setFont(italic_font)
              list_widget.addItem(item)
docs: Fill the list widget with compatible layers.
  
          :returns: Metadata of found layers.
          :rtype: list of dicts