private function createMatcher($matcher) { return $matcher instanceof MatcherInterface ? $matcher : $this->matcherFactory->str($matcher); }