Extend routine `diagnosticStructureGenerate` by split it to pre and body.
Extend routine `diagnosticStructureGenerate` by split it to pre and body.

volodymyrmigdal/wTools,Wandalen/wTools,Wandalen/wTools