class RuboCop::AST::NodePattern::Node::Subsequence

def in_sequence_head

def in_sequence_head
  super if children.empty?
  return unless (replace = children.first.in_sequence_head)
  [with(children: [*replace, *children[1..]])]
end