combination of ConvertingVisitor & XtendASTFlattener
foo() -> foo, getClass().getPackage() -> class.package