public boolean containsKey(SNodeId key) {
   if (key instanceof Regular) {
     return myRegularMap.containsKey(((Regular) key).getId());
   } else if (key instanceof Foreign) {
     return myForeignMap.containsKey(((Foreign) key).getId());
   } else {
     return myOtherMap.containsKey(key);
   }
 }
 public boolean isMutable(@NotNull T item) {
   return modifiedToOriginal.containsKey(item) || !originalItems.contains(item);
 }