Tag generic data structures in Java