protected function matchPart(
        Pointcut $pointcut,
        $point,
        $context = null,
        $instance = null,
        array $arguments = null
    ): bool {
        return $pointcut->matches($point, $context, $instance, $arguments)
            && $pointcut->getClassFilter()->matches($context);
    }