public static function getPatternFor(Pattern $parent, $word)
    {
        if (self::isWildcard($word)) {
            return self::getWildcardPattern($parent, $word);
        }

        return new Word($word);
    }