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: types_resolver.rb
    path of file: ./repos/gitlabhq/app/graphql/resolvers/work_items
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Resolvers
  module WorkItems
    class TypesResolver < BaseR
    
      def resolve_with_lookahead(name: nil)
        context.scoped_set!(:resource_parent, object)

        # This will require a finder in the future when groups/projects get their work item types
        # All groups/projects use the default types for now
        base_scope = ::WorkItems::Type.default
        base_scope = base_scope.by_type(name) if name

        apply_lookahead(base_scope.order_by_name_asc)
      end