You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: nested_groups.rb
    path of file: ./repos/rubocop-rspec/lib/rubocop/cop/rspec
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module RuboCop
  module Cop
    mo
    
        def find_nested_example_groups(node, nesting: 1, &block)
          example_group = example_group?(node)
          yield node, nesting if example_group && nesting > max_nesting

          next_nesting = if count_up_nesting?(node, example_group)
                           nesting + 1
                         else
                           nesting
                         end