public void setThread(@Nullable ThreadReference thread) {
    assertCanBeUsed();
    ThreadReferenceProxyImpl threadProxy = myVirtualMachine.getThreadReferenceProxy(thread);
    assertInLog(myThread == null || myThread == threadProxy,
                () -> "Invalid thread setting in " + this + ": myThread = " + myThread + ", thread = " + thread);
    setThread(threadProxy);
  }
public void setThread(@Nullable ThreadReference thread)