When developing custom JVM language support, what is the proper way to register new Java classes and methods? For instance, in Frege, we might have a file like this -
module foo.bar.Baz where
data Quux a = Quux a
spam = "eggs"
The module declaration introduces the class `foo.bar.Baz`, the class `foo.bar.Baz.TQuux`, (yes TQuux, not Quux) and the static method `foo.bar.Baz.spam`.
I can obtain the elements via the Psi tree; however, it's not clear how to tell IntelliJ about these new classes and methods so they can be used from Java code without it reporting the error "Cannot resolve symbol".