### Question:
Optimizer { static Matcher removeRepeatedStart(Matcher matcher) { if (matcher instanceof ZeroOrMoreMatcher) { ZeroOrMoreMatcher zm = matcher.as(); if (zm.repeated() instanceof StartMatcher) { return zm.next(); } } return matcher; } private  Optimizer();   }### Answer:
@Test public void removeRepeatedStart() { Matcher input = new ZeroOrMoreMatcher(StartMatcher.INSTANCE, AnyMatcher.INSTANCE); Matcher expected = AnyMatcher.INSTANCE; Assertions.assertEquals(expected, Optimizer.removeRepeatedStart(input)); }