(util) Simplify EcoreHelper.getContainerOfType()

Updated from last changes on original method (from Xtext fw)
The method is not recursive anymore