def METHOD_NAME(cls, queue_entries: list[ProcessInstanceQueueModel]) -> list[int]:
    ctx = cls.get_thread_local_locking_context()
    new_locks = {entry.process_instance_id: entry for entry in queue_entries}
    new_lock_ids = list(new_locks.keys())
    ctx["locks"].update(new_locks)
    return new_lock_ids