code: def _addModuleInfo(self, moduleInfo):
          
          if is_a_string(moduleInfo):
              moduleInfo = mi.ImportedModuleInfo(moduleInfo)
  
          line = "{:15s}: {}".format(moduleInfo.name, moduleInfo.verboseVersion)
          self.editor.appendPlainText(line)
          QtWidgets.QApplication.instance().processEvents()
docs: Adds a line with module info to the editor
              :param moduleInfo: can either be a string or a module info class.
                  In the first case, an object is instantiated as ImportedModuleInfo(moduleInfo).