PrimitiveProperty inheritedPrimitiveProperty = (PrimitiveProperty) inheritedProperty; PrimitiveProperty newPrimitiveProperty = RapidmlFactory.eINSTANCE.createPrimitiveProperty(); newPrimitiveProperty.setType(inheritedPrimitiveProperty.getType()); List<Constraint> constraintsToCopy = Lists.newArrayList(inheritedPrimitiveProperty.getAllConstraints()); for (PrimitiveProperty nextInheritedProperty : Iterables.filter(inheritedPropertiesForName,