Kotlin "val cannot be reassigned" except that I defined my variable as var

Found the error, apparently intelliJ had imported :man_shrugging:

javax.swing.text.html.ImageView