Look for qualified this usages in the same class.
Examples:
Negative example: List list = new ArrayList(); list.add("22"); //warn List test = (ArrayList) list.subList(0, 1); Positive example: List list2 = new ArrayList(list.subList(0, 1));