org.keycloak.services.resources.admin.UserResource#updateUserFromRep unused parameter

In org.keycloak.services.resources.admin.UserResource#updateUserFromRep there is unused parameter UserProfile profile in version 17.1.
Is it safe to pass null or there is something behind the scene that evaluates this attribute?