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: parser.rb
    path of file: ./repos/truffleruby/bench/asciidoctor/asciidoctor/lib/asciidoctor
    
    the code of the file until where you have to start completion: # encoding: UTF-8
module Asciidoctor
# Public: Methods to parse lines of AsciiDoc into an object hier
    
  def self.next_outline_list(reader, list_type, parent)
    list_block = List.new(parent, list_type)
    if parent.context == list_type
      list_block.level = parent.level + 1
    else
      list_block.level = 1
    end