ClassCastException is no longer thrown when doing for(T t : analyzer.getOrdered()) {}