protected static function performSanityCheck($element)
{
if ($latestVersion = $element->getLatestVersion()) {
if ($latestVersion->getDate() > $element->getModificationDate()) {
return;
}
}
$element->setUserModification(0);
$element->save();
if ($version = $element->getLatestVersion(true)) {
$version->setNote("Sanitycheck");
$version->save();
}
}