void (@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); } }