@Override
  protected boolean wasObjectStored(Object editableObject) {
    if (editableObject instanceof NamedScope scope) {
      final String scopeId = scope.getScopeId();
      return myLocalScopesManager.getScope(scopeId) != null || mySharedScopesManager.getScope(scopeId) != null;
    }
    return false;
  }
@Override
  protected boolean wasObjectStored(Object editableObject)