Partial implementation of generics matcher generation.