Use isCompanion for companion object counting (#388)
Use isCompanion for companion object counting (#388)

* Use isCompanion for companion object counting

* Remove inner let

square/kotlinpoet,square/kotlinpoet