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

module JiraConnect
  class SyncProjectWorker # rubocop:disable Scalability/IdempotentWorker
    include ApplicationWorker
    include SortingTitlesValuesHelper

    sidekiq_options retry: 3
    queue_namespace :jira_con
    
    def perform(project_id, update_sequence_id)
      project = Project.find_by_id(project_id)

      return if project.nil?

      sync_params = {
        branches: branches_to_sync(project),
        merge_requests: merge_requests_to_sync(project),
        update_sequence_id: update_sequence_id
      }

      JiraConnect::SyncService.new(project).execute(**sync_params)
    end