Only check incompatible return types for inherited methods.