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

# This class relies on Common Table Expressions to efficiently get all data,
# incl
    
    def projects_belonging_directy_to_any_groups_user_has_access_to(cte_alias:)
      Namespace
        .unscoped
        .select([alias_as_column(projects[:id], 'project_id'),
                 cte_alias[:access_level]])
        .from(cte_alias)
        .joins(:projects)
    end