Consider the following:
@groovy.transform.CompileStatic
void test() {
['foo','bar','baz'].stream().collect(Collectors.toMap(
(String s) -> s, (String s) -> Collections.singletonList(s))
)
}
Second occurrence of "String" does not have color or hover support. This is specific to Static Compilation.

Consider the following:
Second occurrence of "String" does not have color or hover support. This is specific to Static Compilation.