private void setThread(@Nullable ThreadReferenceProxyImpl threadProxy) {
    if (threadProxy != null && myThread != threadProxy) { // do not add more than once
      threadProxy.addListener(myListener, this);
    }
    myThread = threadProxy;
  }
private void setThread(@Nullable ThreadReferenceProxyImpl threadProxy)