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: monitoring_concern.rb
    path of file: ./repos/coursemology2/app/controllers/concerns/course/assessment/submission
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
module Course::Assessment::Submission::MonitoringConcern
  extend ActiveSupport::Concern

  included do
    before_action :chec
    
  def should_monitor? # rubocop:disable Metrics/CyclomaticComplexity
    monitoring_component_enabled? &&
      current_user.id == @submission.creator_id &&
      current_course_user&.student? &&
      can?(:create, Course::Monitoring::Session.new(creator_id: current_user.id)) &&
      @assessment&.monitor&.enabled? &&
      !@submission.submitted?
  end