// "Collapse loop with stream 'forEach()'" "INFORMATION" import java.io.FileInputStream; import java.io.FileNotFoundException; import java.util.*; class A { public void foo(final Set strings) throws FileNotFoundException { strings.forEach(s -> new FileInputStream()); } }