Stream.of(1, 2, 3).filter(i -> true).forEach(System.out::println); // 1 2 3
Stream.of(3, 2, 1).filter(i -> false).forEach(System.out::println); // Nothing
Returns:
true if this list contained the specified element
mvn clean install
потом еще раз обновить