Hello!
While scanning all packages using ModuleDescriptor.getSubPackagesOf I've faced a problem.
Suppose we have packages like below
x
x.y
x.y.z.SomeClass
x.z.SomeClass
When call getSubPackageOf(FqName("x")) it will return only x.z package. x.y package will not be returned. I guess cause it don't have any nonpackage declarations (classes, variables,functions). But how than I can find out that x.y.z package exists to scan it?