#10586: Fix a false positive for Style/DoubleNegation when using define_method or define_singleton_method. ([@ydah][])