recently I've managed to create my own project wizard for IntelliJ. Now I want to add the Scala Facet programatically to my project (projects, that can be created with my wizard use Scala). I've found the method addFacet in the FacetManager which (as far as In suppose) should allow me that, however, I cannot access the Scala facet, basically because I cannot figure out how to add the dependency to scala to my module, alhtough it's installed and everythign for Scala is setup (I'm writing my plugin in Scala, which works seamlessly). Any hints?
Thanks in advance,