I wonder how JetBrains shared the license for their IDE with Android the license. As far as I know IDEA community edition is open-source, but I'm wondering if they license allows what Android did with it.
Alternatively, and more likely, Google has a bespoke licence for it. They’re cooperating enough with JetBrains on this that they’re likely to have some agreements in place anyhow
Studio is also open source.
Not everything, Studio uses parts of CLion.
It also seems like a good way to promote Kotlin, which could be JetBrains's cash cow.
How is Kotlin itself making that much money?
Likely the same way Java does, licensing. But programming languages have to be adopted by a lot of people before they become really valuable.