void () { doTest( """ import java.util.regex.Pattern; import java.util.Set; class Test { void test(Set<String> names) { names.forEach(Pattern::/*Result of 'Pattern.compile()' is ignored*/compile/**/); } } """); }