Foso
09/13/2019, 3:51 PMraulraja
09/13/2019, 4:16 PMraulraja
09/13/2019, 4:17 PMFoso
09/13/2019, 4:25 PMshikasd
09/13/2019, 5:53 PMDeclarationChecker
with AnnotationBasedExtension
to help you out.
See SerializationPluginDeclarationChecker
from Kotlin sources as example.
In case of other expressions (e.g. actual method calls), it is a bit more complicated, so you'll have to traverse the tree yourself.