@yan originally when I add a statement at the end of the closure shown below, pretty much everything above flagged as errors saying some of classes generated classes extend can't be accessed.
As I said, the errors go away, if 1) I refresh gradle projects or 2) rebuild the subproject containing the generated codes.