static void smallestList_checkElements(O... e) { for (O o : e) if (/*o instanceof L ||*/ o instanceof Pair || o instanceof T3 || o instanceof O[]) fail("Can't add this to a smallestList: " + shortToString(o)); }