docs: def edit_encoding(cls, parent):
          """
          Static helper method that shows the encoding editor dialog
          If the dialog was accepted the new encodings are added to the settings.
  
          :param parent: parent widget
          :return: True in case of succes, False otherwise
  
          """
          dlg = cls(parent)
          if dlg.exec_() == dlg.Accepted:
              settings = Cache()
              settings.preferred_encodings = dlg.get_preferred_encodings()
              return True
          return False