public static bool Matches(this PatternMatcher matcher, string candidate) => matcher.GetFirstMatch(candidate) != null;
public static bool Matches(this PatternMatcher matcher, [NotNullWhen(true)] string?candidate) => matcher.GetFirstMatch(candidate) != null;