code: def _folder_item_assigned_worksheet(self, analysis_brain, item):
          
          if not IAnalysisRequest.providedBy(self.context):
              # We want this icon to only appear if the context is an AR
              return
  
          analysis_obj = self.get_object(analysis_brain)
          worksheet = analysis_obj.getWorksheet()
          if not worksheet:
              # No worksheet assigned. Do nothing
              return
  
          title = t(_("Assigned to: ${worksheet_id}",
                      mapping={'worksheet_id': safe_unicode(worksheet.id)}))
          img = get_image('worksheet.png', title=title)
          anchor = get_link(worksheet.absolute_url(), img)
          self._append_html_element(item, 'state_title', anchor)
docs: Adds an icon to the item dict if the analysis is assigned to a
          worksheet and if the icon is suitable for the current context
  
          :param analysis_brain: Brain that represents an analysis
          :param item: analysis' dictionary counterpart that represents a row