How to Avoid Generics Related Warnings in Eclipse