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: top_level_group.rb
    path of file: ./repos/rubocop-rspec/lib/rubocop/cop/rspec/mixin
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

mo
    
        def on_new_investigation
          super

          top_level_groups.each do |node|
            on_top_level_example_group(node) if example_group?(node)
            on_top_level_group(node)
          end
        end