Reflecting extraction of generic library