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

m
    
        def magic_comment_lines
          comment_lines = { encoding_magic_comments: [], frozen_string_literal_magic_comments: [] }

          leading_magic_comments.each.with_index do |magic_comment, index|
            if magic_comment.encoding_specified?
              comment_lines[:encoding_magic_comments] << index
            elsif magic_comment.frozen_string_literal_specified?
              comment_lines[:frozen_string_literal_magic_comments] << index
            end
          end