class RuboCop::AST::Node

def chained?

def chained?
  parent&.call_type? && eql?(parent.receiver)
end