private List<PyThreadInfo> collectAllThreads() {
    List<PyThreadInfo> result = new ArrayList<>();

    //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 : myDebuggers) {
      result.addAll(d.getThreads());
      for (PyThreadInfo t : d.getThreads()) {
        myThreadRegistry.register(t.getId(), d);
      }
    }

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