This seems to find template files regardless of their package. If a class is annotated with @Templated("MyTemplate.html") then MyTemplate.html needs to reside in the same package as the annotated class unless an alternative path was specified (i.e. "../../MyTemplate.html"). I don't know the intellij APIs but FilenameIndex.getFilesByName seems to find MyTemplate.html in any location? This is a problem as it could potentially find a file with the same name in a different package which would cause a failure at rebind time. Can we make this change package sensitive?