This is somewhat unrelated to your changes, but what if a Java project has a Scala dependency, shouldn't we return a ``ScalaClassFile``? This way a ``ScalaClassFileEditor`` would be opened and both syntax and semantic highlighting should work as expected. (I'm saying all this so that if you agree we can file a ticket).