KDoc has the @suppress tag which allows to hide documentation for corresponding API element.
Two areas we can consider for not showing our internal API:
- Annotator in McJava could also annotate generated Kotlin DSL.
- We can add the
@suppress tag in the handwritten code where we use @Internal annotation.