public synchronized void unexportChildren(@NotNull Collection<? extends WeakReference<RemoteObject>> children) throws RemoteException {
    if (IN_PROCESS) return;
    if (children.isEmpty()) return;
    final ArrayList<RemoteObject> list = new ArrayList<>(children.size());
    for (WeakReference<? extends RemoteObject> child : children) {
      RemoteObject element = child.get();
      if (element != null) {
        list.add(element);
      }
    }
    Set<RemoteObject> childrenKeys = myChildren.keySet();
    for (RemoteObject child : list) {
      childrenKeys.remove(child);
      child.unreferenced();
    }
  }
public synchronized void unexportChildren(@NotNull Collection<? extends WeakReference<RemoteObject>> children)