class RuboCop::Cop::Layout::BlockAlignment

def block_end_align_target(node)

def block_end_align_target(node)
  lineage = [node, *node.ancestors]
  lineage.each_cons(2) do |current, parent|
    return current if end_align_target?(current, parent)
  end
  lineage.last
end