code: def updateFormatList(self):
      current = self.ui.formatList.currentItem()
  
      self.ui.formatList.clear()
      gotCurrent = False
      for exp in exporters.listExporters():
          item = FormatExportListWidgetItem(
              exp,
              QtCore.QCoreApplication.translate("Exporter", exp.Name),
          )
          self.ui.formatList.addItem(item)
          if item is current:
              self.ui.formatList.setCurrentRow(
                  self.ui.formatList.count() - 1
              )
              gotCurrent = True
  
      if not gotCurrent:
          self.ui.formatList.setCurrentRow(0)
  
imports: from ..None import exporters
  from ..None import functions
  from ..graphicsItems.PlotItem import PlotItem
  from ..graphicsItems.ViewBox import ViewBox
  from ..Qt import QtCore, QtWidgets
  from .None import exportDialogTemplate_generic
label_desc: Use image node_id 6 for calling the ExportDialog obj's underlying member method code with example usage: obj.updateFormatList() without return types