code: public function apply($styles, $text): string
      {
          if (!$this->isSupported()) {
              return $text;
          }
  
          $sequences =
              $this->getSequencesFrom(
                  $this->refineStyles($styles)
              );
  
          if (empty($sequences)) {
              return $text;
          }
  
          return $this->applySequences($text, $sequences);
      }
docs: {@inheritdoc}