try to improve error messages when overriding extension method or static members