Kotlin compiler plugin, Kotlin resolution encountered a problem while analyzing KtClass

I found that when I tried to develop IDEA plugin using the Kotlin compiler plugin, I implemented a SyntheticResolveExtension, and since there was no documentation, I had to try it by debug, for example, in the following I wanted to get KtClass by KtFile, which was easy, but when I got annotations on the class, I found that an exception was thrown:

Kotlin resolution encountered a problem while analyzing KtClass

It’s work fine:

when I got annotations:

My Kotlin version: The latest IDEA (213.6777.52) bundled with version 1.5.10

Also I’m curious how kotlin’s compiler plugin developers write so many plugins without documentation or code comments, and whether there are some better api guides

attachments:


Info.txt shows that BodyResolveMode.PARTIAL maybe not resolve these annotations, so is there a way to resolve them?