(util) Simplify EcoreHelper.getContainerOfType()