I have a small Test Lib which has a method like this:
assertHtml(String html) {}
I tried to add @Language Annotation from Intellij into the method definition. I want that my main project which has the lib as dependency has nice syntax coloring in the string with language injection
So I added a @Language annotation:
assertHtml(@Language("HTML") String html) {}
This works fine as long as I have this method in the same project OR if I use an includeBuild. I can see the syntax coloring immediately
If I build this lib and remove the includeBuild and use the test lib as a regular dependency, Intellij does not recognize the @Language Annotation anymore.
This is strange. Can I fix it and how?