Support for MapStruct SPI
My DTOs are auto generated. each field is generated with an setter(setXXX) and chained accessor(withXXX). I wrote a customized AccessorNamingStrategy SPI to exclude those methods start with with and added the SPI to my project's preprocessor.
My SPI has successfully enlimited warnings of withXXX accessors. but in my IDEA, it still promotes the hits for adding withXXX mappings:

Having same issue when trying to use the protobuf SPI
@coney This ia a tricky one to be honest. There is no way for us to invoke the SPI from within the plugin. What we could offer perhaps is a way for people to somehow configure how certain methods need to be ignored.
@91wzhang supporting the protobuf SPI is perhaps that we need to look into independently. I would suggest creating a separate issue for that
@coney This ia a tricky one to be honest. There is no way for us to invoke the SPI from within the plugin. What we could offer perhaps is a way for people to somehow configure how certain methods need to be ignored.
@91wzhang supporting the protobuf SPI is perhaps that we need to look into independently. I would suggest creating a separate issue for that
Great, maybe a simple configurable regex pattern is enough for my scenario
Great, maybe a simple configurable regex pattern is enough for my scenario
That is an interesting idea @coney. We can look into that one.
@coney would you be interested in providing this functionality to the plugin?
@filiphr : I gave it a first try - see https://github.com/mapstruct/mapstruct-idea/pull/150
Thanks @jomu78. I've added a response on the PR in https://github.com/mapstruct/mapstruct-idea/pull/150#issuecomment-1712785314