Right. I now enabled this in NetBeans IDE:
Tools -> Options -> Fonts & Colors -> Higlighting -> Trailing Whitespace
So hopefully I will spot those more easily in the future :)