class RuboCop::Cop::Naming::RescuedExceptionsVariableName

def shadowed_variable_name?(node)

def shadowed_variable_name?(node)
  node.each_descendant(:lvar).any? { |n| n.children.first.to_s == preferred_name(n) }
end