@User uploaded a file:
Untitled and commented: I'm converting my codebase from java to kotlin and came accross this piece. What would be the 'kotlin' way of properly implementing this? Obviously the 'this' in the anonymous function is not going to work, so I was wondering what could be a good solution?