// "Cast expression to 'B'" "false"
import java.util.*;

class A { }

class B extends A {
    public B getStrings() {
        return get<caret>FirstItem(new ArrayList<A>());
    }

    public static <T> T            getFirstItem(Set<T> items) { return null; }
    public static <T> ArrayList<T> getFirstItem(List<T> items) { return null; }
}