public static function getSharedFromArgs($arguments = [], $key = null, $defaultValue = null) {
        if ($key === null) {
            return null;
        }
        /** @var SharedDataInterface $instance */
        if (($instance = static::instanceFromArguments($arguments)) === null) {
            return null;
        }
        return $instance->getData($key, $defaultValue);
    }