Fix the MarkPrivateFieldsAsReadOnly rule detecting a custom EventHandler.