Is it possible to add elements to the replacement menu?

Hello, is it possible to modify the replacement menu and to determine which
elements shall be available for replacement at all?
I mean the menu that can be opened from the contextPad (see picture)

image

Thanks in advance!

You can customize the replace menu like any other component in bpmn-js:

const bpmnModeler = new BpmnJS({
  additionalModules: [
    {
      replaceMenuProvider: [  'type', MyCustomReplaceMenuProvider ]
    }
  ]
});