Can I build a commercial product on top of the IntelliJ Platform?
Yes, you can, according to the terms of the Apache 2 license. We encourage developers to build both open source and commercial products on top of the platform.
blogs.jetbrains.com/.../
http://www.jetbrains.org/display/IJOS/FAQ