          branches = sorted(list(branches), key=str.casefold)
          logger.debug("Final branches: %s", branches)
          return branches
  
      @staticmethod
      def _switch_branch(branch):
          """ Change the currently checked out branch, and return a notification.
  
          Parameters
          ----------
          str
 
</s> remove         branches = sorted(list(branches), key=str.casefold)
        logger.debug("Final branches: %s", branches)
        return branches
 </s> add         retval = sorted(list(branches), key=str.casefold)
        logger.debug("Final branches: %s", retval)
        return retval </s> remove                 command=lambda b=branch: self._switch_branch(b))
 </s> add                 command=lambda b=branch: self._switch_branch(b))  # type:ignore </s> remove     @staticmethod
    def _get_branches():
 </s> add     @classmethod
    def _get_branches(cls) -> T.Optional[str]: </s> remove     @staticmethod
    def _filter_branches(stdout):
 </s> add     @classmethod
    def _filter_branches(cls, stdout: str) -> T.List[str]: </s> remove         str
 </s> add         str or ``None``
    @classmethod
    def _switch_branch(cls, branch: str) -> None:
          branches = sorted(list(branches), key=str.casefold)
          logger.debug("Final branches: %s", branches)
          return branches
  
    @classmethod
    def _switch_branch(cls, branch: str) -> None:
    @classmethod
    def _switch_branch(cls, branch: str) -> None:
          """ Change the currently checked out branch, and return a notification.
  
          Parameters
          ----------
          str
keep keep keep keep replace replace keep keep keep keep keep
 locales: Add GUI menu translations 
lib/gui/menu.py