class RuboCop::Cop::Style::RaiseArgs

def check_exploded(node)

def check_exploded(node)
  return correct_style_detected unless node.arguments.one?
  first_arg = node.first_argument
  return unless first_arg.send_type? && first_arg.method?(:new)
  return if acceptable_exploded_args?(first_arg.arguments)
  return if allowed_non_exploded_type?(first_arg)
  add_offense(node, message: format(EXPLODED_MSG, method: node.method_name)) do |corrector|
    replacement = correction_compact_to_exploded(node)
    corrector.replace(node, replacement)
    opposite_style_detected
  end
end