Thanks for specifying, as I said I'm not a java programmer. I stand corrected.
>it's common to find Java code written like in my example because the syntax for sets in Java came after Java 8
So I think we went full circle back to GP claim:
> The language itself is quite beautiful when used properly and with modern features
:)