docs: public Matcher matcher(MatchResult res, String groupName) {
          Integer id = res.pattern().groupId(groupName);
          if (id == null) throw new IllegalArgumentException("group not found:" + groupName);
          int group = id;
          return matcher(res, group);
      }