/**
 * This function takes two sets as input and returns a list of objects that are common to both sets.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @return A list of objects that are present in both sets
 *         An empty list if there are no common objects
 */
fun getObjectsInIntersection(set1: Set<Any>, set2: Set<Any>): List<Any> {

    val commonObjects = mutableListOf<Any>()
    
    for (obj in set1) {
        if (obj in set2) {
            commonObjects.add(obj)
        }
    }
    
    return commonObjects
}
/**
 * This function takes two sets as input and returns a list of objects that are common to both sets.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @return A list of objects that are present in both sets
 *         An empty list if there are no common objects
 */
fun getObjectsInIntersection(set1: Set<Any>, set2: Set<Any>): List<Any> {
/**
 * This function takes two sets as input and returns a list of objects that are common to both sets.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @return A list of objects that are present in both sets
 *         An empty list if there are no common objects
 */
fun getObjectsInIntersection(set1: Set<Any>, set2: Set<Any>): List<Any> {

    val commonObjects = mutableListOf<Any>()
    
    for (obj in set1) {
        if (obj in set2) {
            commonObjects.add(obj)
        }
    }
    
    return commonObjects
}