code: def _maybe_apply_history(self, method):
          
          if self.is_historic():
              for kwargs, result_callback in self._call_history:
                  res = self._hookexec(self, [method], kwargs)
                  if res and result_callback is not None:
                      result_callback(res[0])
docs: Apply call history to a new hookimpl if it is marked as historic.