public static function partialMock(
        $types = [],
        $arguments = []
    ): InstanceHandle {
        $container = self::$globals::$container;

        return $container->handleFactory->instanceHandle(
            $container->mockBuilderFactory->create($types)
                ->partialWith($arguments)
        );
    }