private boolean isMethodFromProtobufGeneratedClass(ExecutableElement method) {
        Element receiver = method.getEnclosingElement();
        return protobufMesageOrBuilderType != null && receiver != null && typeUtils.isAssignable(receiver.asType(), protobufMesageOrBuilderType);
    }
refer <a href="https://github.com/entur/mapstruct-spi-protobuf">mapstruct-spi-protobuf</a>
@author Arne Seime
commons-mapstruct-spi/src/main/java/com/navercorp/pinpoint/mapstruct/spi/ProtobufAccessorNamingStrategy.java