How to create your own "Add Component Conflict" event?

How can i make components conflicting eachother when adding a component?

I want the similar error like when you add a 2D collider and a 3D collider, then a box will pop up and say that you cant do it because its conflicting with another component.

ExecuteInEditMode on class, then check for conflicts on Start() to DisplayDialog and DestroyImmediate? (haven’t tested)