Is this the only way to get the class of a generic collection at runtime?
Class<T> clazz = new HashSet<Task>() {
private static final long serialVersionUID = 8252429191034335636L;
}.getClass()
My IDE says:
"The serializable class does not declare a static final serialVersionUID field of type long"