Java Loop Through Set Python Intersection