Ignore inner class scanning in the compiler to support dynamic languages like groovy [SI-7741]

related to https://issues.scala-lang.org/browse/SI-7741