private synchronized void removeBaseClass(RefClass superClass) {
    if (myBases instanceof RefClass) {
      if (myBases == superClass) myBases = null;
    }
    else if (myBases != null) {
      //noinspection unchecked
      ((Set<RefClass>)myBases).remove(superClass);
    }
  }
private synchronized void removeBaseClass(RefClass superClass)