ilya.gorbunov
02/06/2017, 3:31 PMsavedQuery and callbackFromLogin inside startQuery, then you'll be able to use its type parameters.
It's basically the same thing as @kirillrakhman suggests, but the class created is anonymous instead of the named one.