private List<PyThreadInfo> collectAllThreads() {

    List<PyThreadInfo> result = new ArrayList<>(myMainDebugger.getThreads());

    // Collect threads and add them to registry to faster access
    // we don't register mainDebugger as it is default if there is no mapping.
    for (RemoteDebugger d : myOtherDebuggers) {
      result.addAll(d.getThreads());
      for (PyThreadInfo t : d.getThreads()) {
        myThreadRegistry.register(t.getId(), d);
      }
    }

    return result;
  }
private List<PyThreadInfo> collectAllThreads()