@param string|PlatformDecoratorInterface $decorator