The method get() always become marked in my intellij idea. Compiler says that i should use method isPresent as well. My colleagues say that i should not pay attention to that notice. Anyway, i decided to ask here.
List<Integer> list = new ArrayList<>();
list.add(5);
list.add(6);
list.add(4);
list.add(7);
list.add(3);
int result = list.stream().reduce((accumulator,element) ->
accumulator*element).get(); // this get() is mentioned above