MixedClassRewriter full implementation