import T.Companion.foo class T { companion object { fun T.foo() {} } } fun T.usage() { foo() } // INVOCATION_COUNT: 2 // ELEMENT: foo