class RuboCop::Cop::RSpec::SubjectStub

def find_all_explicit(node)

def find_all_explicit(node)
  node.each_descendant(:block).with_object({}) do |child, h|
    name = yield(child)
    next unless name
    outer_example_group = child.each_ancestor(:block).find do |a|
      example_group?(a)
    end
    h[outer_example_group] ||= []
    h[outer_example_group] << name
  end
end