Syntax error on Ticket User Preferences

Hi,
I am getting error on executing the below code, Please help me.

Code :

public boolean updateUserPreferences(String email, Map<String, ?> userPreferences) {
        Document queryFilter = new Document("email",email);
	usersCollection.updateOne(queryFilter,set("preferences",userPreferences));
        return true;
    }

Error :wave:

mflix: Compilation failure
[ERROR] /C:/M220/mflix/src/main/java/mflix/api/daos/UserDao.java:[169,47] cannot find symbol
[ERROR]   symbol:   method set(java.lang.String,java.util.Map<java.lang.String,capture#1 of ?>)
[ERROR]   location: class mflix.api.daos.UserDao