def METHOD_NAME(self, ask=True):
    """
    Remove this element
    @return:
    """
    if ask:
        ok = yes_no_question('Are you sure that you want to remove this static generator', 'Remove static generator')
    else:
        ok = True
    if ok:
        self.diagramScene.removeItem(self.nexus)
        self.diagramScene.removeItem(self)
        self.api_object.bus.static_generators.METHOD_NAME(self.api_object)