boolean (@NotNull MatchContext context, int matchedOccurs) { if (target) return matchedOccurs > 0; if (minOccurs > matchedOccurs) return false; if (maxOccurs < matchedOccurs) return false; return true; }