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

module Autocomplete
    
    def execute
      return if project_id.blank?

      project = Project.find(project_id)

      # This removes the need for using `return render_404` and similar patterns
      # in controllers that use this finder.
      unless Ability.allowed?(current_user, :read_project, project)
        raise ActiveRecord::RecordNotFound, "Could not find a Project with ID #{project_id}"
      end