Ah, got it now. In case a generated method uses a factory method to instantiate the return value, this check needs to be suppressed. So you'd have to pull out the retrieval of the factory method and pass the fact whether such factory method is present or not into this reporting method. Only if there is no factory method and no registered implementation type, the error should be raised.