collections package made checkstyle compliant