Create list plugin

I want to create a plugin for generating dynamic lists (nested, numbered). I found a couple of functions getRangeListOption() and setRangeListOption(), but I can’t figure them out. With the help of them it is possible to generate lists and how to use them? If someone has an example, please help