Can you give examples of the Apple spyware you're mentioning? I'm familiar with the on-device scanning for iCloud-backups-using phones, but for me that's it. How wrong am I?
One of the options I would suggest is to add the possibility to type the end bracket or parenthesis before the included code,by doing some kind of conditional forward lookup