private Set<String> calculateAddedFeatures(FeatureModel oldModel, FeatureModel newModel) { Set<String> addedFeatures = new HashSet<String>(); for (Feature feature : newModel.getFeatures()) if (feature.isConcrete()) { String name = newModel.getRenamingsManager().getOldName(feature.getName()); Feature associatedFeature = oldModel.getFeature(oldModel.getRenamingsManager().getNewName(name)); if (associatedFeature == null || associatedFeature.isAbstract()) addedFeatures.add(name); } return addedFeatures; }