void () { List<T> nullableList = new ArrayList<>(); List<? extends @NotNull CharSequence> <warning descr="Assigning a collection of nullable elements into a collection of non-null elements">list2</warning> = nullableList; }