@Override
  public boolean supportsBoundary(RegExpBoundary boundary) {
    return switch (boundary.getType()) {
      case UNICODE_EXTENDED_GRAPHEME -> hasAtLeastJdkVersion(boundary, JavaSdkVersion.JDK_1_9);
      case RESET_MATCH -> false;
      case LINE_START, LINE_END, WORD, NON_WORD, BEGIN, END, END_NO_LINE_TERM, PREVIOUS_MATCH -> true;
    };
  }
@Override
  public boolean supportsBoundary(RegExpBoundary boundary)