While developing compiler plugin I've faced with problem that I can't solve without help.
In IrGenerationExtension while visiting class I need to check if it is subclass or same class of one taken from pluginContext::referenceClass.
Copy code
override fun visitClass(declaration: IrClass): IrStatement {
val exampleClass = pluginContext.referenceClass(ClassId.topLevel(FqName("pack.Example")))!!
if (declaration.isSubclassOf(exampleClass.owner)) { ... }
}