I have a legacy class that the class itself is not a generic but one of its methods return type uses generics:
public class Thing { public Collection<
It is failing because of erasure. You can read more about it in these Java Tutorials