static void smallestList_checkElements(O... e) { for (O o : e) if (o instanceof L) fail("Can't add List to smallestList: " + shortToString(o)); }