code: def _add_spacer_to_menu(self):
          
          separator = QAction(self.iface.mainWindow())
          separator.setSeparator(True)
          self.iface.addPluginToMenu(self.tr('InaSAFE'), separator)
docs: Create a spacer to the menu to separate action groups.