docs: public Matcher usePattern(Pattern newPattern) {
          if (newPattern == null)
              throw new IllegalArgumentException("Pattern cannot be null");
          matcher.setPattern(newPattern.internal);
          return this;
      }