import java.util.*;

enum En {
  A(new Y<>((List) new ArrayList<>()));

  En(Y<List<Object>> list) {
  }
}

class Y<I> {
  public Y(I e) {
  }
}
@@ -37,20 +37,98 @@
 ew Y%3C%3E((
-List
+%3Cwarning descr=%22Casting 'new ArrayList%3C%3E()' to 'List' is redundant%22%3EList%3C/warning%3E
 ) new Ar

fix testdata