@Override
  public void indexStub(@NotNull MarkdownHeaderStubElement stub, @NotNull IndexSink sink) {
    final var indexedName = stub.getIndexedName();
    if (indexedName != null) {
      sink.occurrence(HeaderTextIndex.KEY, indexedName);
    }
    final var indexedAnchorReference = stub.getIndexedAnchorReference();
    if (indexedAnchorReference != null) {
      sink.occurrence(HeaderAnchorIndex.KEY, indexedAnchorReference);
    }
  }
@Override
  public void indexStub(@NotNull MarkdownHeaderStubElement stub, @NotNull IndexSink sink)