If I understand correctly, IDEA loads and invokes TEI classes from project
classpath, and creates completion variants from that information.
Out of curiosity, does IDEA just create a UrlClassLoader from all project
libraries, and use that to load the TEI class? What if the TEI class is part
of project source, and has not been compiled yet?