fix eclipse warnings
Check @OnEvent method visibility and parameters only in development mode