isInstanceOf(ApiController::class); } public function getMethodReturnType(MethodCallEvent $event): ?Type { if ($event->name === 'allowedIncludes') { return $event->getArg('includes', 0); } return null; } }