Those particular changes precede us taking over maintenance of ktlint so unfortunately I don't have a lot of insight into them. I will say that the idea of autocorrect is difficult and has limitations that I think we'll always run into unless we turn the tool into a pretty-printer and reformat and write out the entire file at once rather than doing in-place corrections.