replace java 8 stream usage with guava equiv