Parsing function calls with annotated generics