@Override
      public void visitElement(@NotNull PsiElement each) {
        if (each instanceof XmlTag tag) {
          TagKind kind = classifier.apply(tag);
          if (kind != TagKind.Inline) {
            boolean unknown = kind == TagKind.Unknown;
            flushGroup(unknown);
            unknownBefore = unknown;
            return;
          } else {
            inlineTags.add(tag);
            markupIndices.add(group.size());
          }
        }
        if (each instanceof OuterLanguageElement || each instanceof XmlEntityRef) {
          flushGroup(true);
          unknownBefore = true;
        }

        if (isText(each)) {
          group.add(each);
        }
        super.visitElement(each);
      }
@Override
      public void visitElement(@NotNull PsiElement each)