private boolean openingTagAutoClosesTagInStack(final HtmlTagInfo openingTag) {
    var result = new Ref<>(false);
    processStackItems(
      item -> {
        if (item instanceof HtmlTagInfo tagToClose) {
          ThreeState canClose = canOpeningTagAutoClose(tagToClose, openingTag);
          if (canClose != ThreeState.UNSURE) {
            result.set(canClose.toBoolean());
            return false;
          }
        }
        else {
          return false;
        }
        return true;
      }
    );
    return result.get();
  }
private boolean openingTagAutoClosesTagInStack(final HtmlTagInfo openingTag)