def METHOD_NAME(self, container):
    # Add this action as a supported action to all machine definitions
    if isinstance(container, DefinitionContainer) and container.getMetaDataEntry("type") == "machine":
        self._application.getMachineActionManager().addSupportedAction(container.getId(), self.getKey())