class RuboCop::Cop::Style::MethodCallParentheses

def autocorrect(node)

def autocorrect(node)
  # Bail out if the call is going to be auto-corrected by EmptyLiteral.
  if config.for_cop('Style/EmptyLiteral')['Enabled'] &&
     [EmptyLiteral::HASH_NODE,
      EmptyLiteral::ARRAY_NODE,
      EmptyLiteral::STR_NODE].include?(node)
    return
  end
  @corrections << lambda do |corrector|
    corrector.remove(node.loc.begin)
    corrector.remove(node.loc.end)
  end
end