Gutter icon of event handlers is placed on line containing method name

Fixed issue where some methods wouldn't be correctly annotated.