oh wow, Idea says that this forEach cannot be emulated with its embedded jdk.
But it compiles fine and works as planned!