Check if the current definition has a given method to call after service initialization.
public function hasMethodCall(string $method) : bool { foreach ($this->calls as $call) { if ($call[0] === $method) { return true; } } return false; }