try to improve error messages when overriding extension method or static

#274