void (List<RecordWithGeneric<String>> list) { for (RecordWithGeneric<<warning descr="Wildcard type argument '?' extends 'final' class 'String'">?</warning> extends String>(var x): list) { System.out.println(x); } }