Add small refactoring of the static generator
Add small refactoring of the static generator

This commit introduces the use of 'extend(...)' on collection and
checks if the collection is neither empty nor None before adding them
to the attribute/reference instance.

aranega/pyecore,pyecore/pyecore