void (String untidy) { List<String> queries = Arrays.asList("select c from sample s","select c.sample from Sample c where c.color = 'red", untidy); queries.forEach(query -> sink(<warning descr="Unknown string is used as safe parameter">query</warning>)); }