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

class Projects::MergeRequests::CreationsController < Projects::MergeRequests::Applicati
    
  def selected_target_project
    return @project unless @project.forked?

    if params[:target_project_id].present?
      return @project if @project.id.to_s == params[:target_project_id]

      MergeRequestTargetProjectFinder.new(current_user: current_user, source_project: @project)
        .find_by(id: params[:target_project_id])
    else
      @project.default_merge_request_target
    end