Type hint against EventDispatcherInterface

This is a comment **for** my (and others) IDE, as well as various tools.

I'm not sure why it would be bad practice to make the type of some code more explicit in a case where without knowledge of the wider codebase you cannot guess the type.