code: public function isMatch(string $variable, array &$matches = []): bool
      {
          if (!preg_match(static::PATTERN, $variable, $matches)) {
              return false;
          }
  
          $variable = $matches[1];
  
          foreach (array_keys($this->contexts) as $context) {
              switch ($context) {
                  case static::CONTEXT_TASK:
                      if (preg_match(static::PATTERN_TASK, $variable, $matches)) {
                          return true;
                      }
  
                      break;
              }
          }
  
          return false;
      }
docs: {@inheritdoc}