class RuboCop::Cop::Lint::ParenthesesAsGroupedExpression

def chained_calls?(node)

def chained_calls?(node)
  first_argument = node.first_argument
  first_argument.call_type? && (node.children.last&.children&.count || 0) > 1
end