Disable "remove shape" when element is start or end event

Hi there!
I cant find the way to disable the deletion of shapes. I need that the user cant delete shapes, when their type is start or end events.
image
I tried the following code, with no success.
image

I appreciate any help.
Thanks you very much.

You can override ContextPadProvider with a version that suits your needs.

Thanks you for the reply!!