Sorry I don't fully get the question. If you can please give maybe example to understand?
For workitems items in their configuration(.wid) there is a category element and if defined Designer puts it in stencil set section with that name (creates new one if it does not exist already).
HTH