Ah, got it now. The import would be created by the the generated method in case of invoking a factory method, but indeed it's required when invoking a mapping method with the target type. A test for this (as part of #156) would be nice. I've pushed one commit to my fork (https://github.com/gunnarmorling/mapstruct/commit/9ed1cbdef4844ccfe190c998648de387306dc04b), can you integrate that into your PR if you think it's good?