void () { for (String name : new ArrayList<>(Arrays.asList("soutc", "serrc"))) { TemplateImpl template = TemplateSettings.getInstance().getTemplate(name, "Java"); assert !isApplicable("class Foo {void x(){ <caret>JUNK }}", template); assert !isApplicable("class Foo {void x(java.util.stream.IntStream is){ is.map(<caret>JUNK) }}", template); assert isApplicable("class Foo {void x(java.util.stream.IntStream is){ is.peek(<caret>JUNK) }}", template); } }