void (final Stream<String> stream, final Stream<String> cells) { stream.map(rule -> { try { return cells.collect(Collectors.toMap(c -> c, null)); } finally { System.out.println(<error descr="',' or ')' expected"><error descr="Expression expected">;</error></error><error descr="Unexpected token">)</error>; } }); }