code: def _folder_item_category(self, analysis_brain, item):
          
          if not self.show_categories:
              return
  
          cat = analysis_brain.getCategoryTitle
          item["category"] = cat
          cat_order = self.analysis_categories_order.get(cat)
          if (cat, cat_order) not in self.categories:
              self.categories.append((cat, cat_order))
docs: Sets the category to the item passed in
  
          :param analysis_brain: Brain that represents an analysis
          :param item: analysis' dictionary counterpart that represents a row