Extract inner classes from JavaTree and group into packages by domains