public function equals(AbstractContext $context) { return $context instanceof InstanceMethod && $this->getInstance() === $context->getInstance() && $this->getMethodName() === $context->getMethodName(); }