Generalized method signature of performCallback using type argument T, it may be neccessary to specify a type witness to the method call in some cases.