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

class PrometheusMetricsFinder
  ACCEPTED_PARAMS = [
    :pro
    
  def validate_indexes!
    indexable_params = params.except(:ordered, :id, :project).keys
    indexable_params << :project_id if params[:project]
    indexable_params.sort!

    raise ArgumentError, "An index should exist for params: #{indexable_params}" unless appropriate_index?(indexable_params)
  end