import java.util.Collection; class UncheckedBug { void foo(Collection strings) { assertThat(strings, hasSize(0)); } public static Matcher> hasSize(int size) { return null; } public static void assertThat(T actual, Matcher matcher) { } interface Matcher<T> {} }