docs: @ArgumentsChecked
  	@Throws({ IllegalNullArgumentException.class, IllegalPatternArgumentException.class })
  	public static <T extends CharSequence> T matchesPattern(@Nonnull final Pattern pattern, @Nonnull final T chars,
  			@Nullable final String name) {
  		Check.notNull(pattern, "pattern");
  		Check.notNull(chars, "chars");
  		if (!matches(pattern, chars)) {
  			throw new IllegalPatternArgumentException(name, pattern, chars);
  		}
  		return chars;
  	}