class RuboCop::Cop::Style::TrivialAccessors

def autocorrect(node)

def autocorrect(node)
  parent = node.parent
  return if parent && parent.send_type?
  if node.def_type?
    autocorrect_instance(node)
  elsif node.defs_type? && node.children.first.self_type?
    autocorrect_class(node)
  end
end