Implement Custom Kotlin Inspection in AndroidStudio

I’m relatively new to Kotlin, playing at Android development with it using AndroidStudio. I’d like to experiment with writing my own custom inspection. Is there an example anywhere of how to do this. I’ve found this page (Code Inspections and Intentions | IntelliJ Platform Plugin SDK), but it doesn’t give me a lot to go on. If there’s a better place to ask this… that’d be a great answer too.