def METHOD_NAME(self, id, only_contributing=False):
    """Looks up a subcomponent by the id and returns the first or `None`."""
    return next(self.iter_subcomponents(id=id, only_contributing=only_contributing), None)