protected static @NotNull TextRange matcherRange(@NotNull TextRange range, @NotNull Matcher matcher, int group) {
    return subRange(range, matcher.start(group), matcher.end(group));
  }
protected static @NotNull TextRange matcherRange(@NotNull TextRange range, @NotNull Matcher matcher, int group)