void () { doTest("import java.util.ArrayList;\n" + "class Numbers {\n" + " private static <K extends Number, T extends Class<K>> void foo(T categoryClass, ArrayList<Number> numbers) {\n" + " for (Number number : numbers) {\n" + " if (number.getClass() == categoryClass) {\n" + " System.out.println(number);\n" + " }\n" + " }\n" + " }\n" + "}"); }