-// TODO(nds) v1.0.2 master
-//bool PartSet_DifferentObjectsValidator::isValid(const FeaturePtr& theFeature,
-// const std::list<std::string>& theArguments,
-// const ObjectPtr& theObject,
-// const GeomShapePtr& theShape) const
-//{
-// // Check RefAttr attributes
-// std::list<std::shared_ptr<ModelAPI_Attribute> > anAttrs =
-// theFeature->data()->attributes(ModelAPI_AttributeRefAttr::typeId());
-// if (anAttrs.size() > 0) {
-// std::list<std::shared_ptr<ModelAPI_Attribute> >::iterator anAttr = anAttrs.begin();
-// for(; anAttr != anAttrs.end(); anAttr++) {
-// if (*anAttr) {
-// std::shared_ptr<ModelAPI_AttributeRefAttr> aRef =
-// std::dynamic_pointer_cast<ModelAPI_AttributeRefAttr>(*anAttr);
-// // check the object is already presented
-// if (aRef->isObject() && aRef->object() == theObject)
-// return false;
-// }
-// }
-// }
-// // Check selection attributes
-// anAttrs = theFeature->data()->attributes(ModelAPI_AttributeSelection::typeId());
-// if (anAttrs.size() > 0) {
-// std::list<std::shared_ptr<ModelAPI_Attribute> >::iterator anAttr = anAttrs.begin();
-// for(; anAttr != anAttrs.end(); anAttr++) {
-// if (*anAttr) {
-// std::shared_ptr<ModelAPI_AttributeSelection> aRef =
-// std::dynamic_pointer_cast<ModelAPI_AttributeSelection>(*anAttr);
-// // check the object is already presented
-// if (aRef->isInitialized() && aRef->context() == theObject) {
-// if (theShape.get() != NULL) {
-// if (aRef->value()->isEqual(theShape))
-// return false;
-// } else
-// return false;
-// }
-// }
-// }
-// }
-// // Check selection attributes
-// anAttrs = theFeature->data()->attributes(ModelAPI_AttributeReference::typeId());
-// if (anAttrs.size() > 0) {
-// std::list<std::shared_ptr<ModelAPI_Attribute> >::iterator anAttr = anAttrs.begin();
-// for(; anAttr != anAttrs.end(); anAttr++) {
-// if (*anAttr) {
-// std::shared_ptr<ModelAPI_AttributeReference> aRef =
-// std::dynamic_pointer_cast<ModelAPI_AttributeReference>(*anAttr);
-// // check the object is already presented
-// if (aRef->isInitialized() && aRef->value() == theObject)
-// return false;
-// ======= end of todo