Polished the code a little bit - modularized AnnotatePlugin::eventFilter
method.