Writer plugin custom marks → get name() {} documentation

I’m trying to learn how to implement custom marks for the writer-field using the docs: Writer marks/nodes | Kirby CMS and peaking at the source linked in the doc. I feel a bit silly asking this, but I couldn’t get an answer from the docs for this:

The plugin example contains these lines of code:

get name() {
  return "highlight"
}

How and where is the name() used?

I’m assuming its the string I use in blueprints to add the mark to the field—I haven’t tried yet. Am I looking in the wrong places, or is there simply no info on the use of plugin.name() in the docs?

Yes, it’s the name that you’d reference then in your blueprint but also needed inside of ProseMirror to identify a mark (whether it’s active, which button belongs to what mark etc).