Can't shorten to getAll because type erasure