code: public @Nonnull SetType getBlockedThreads() {
          Set<ThreadLock> acquired = new HashSet<ThreadLock>();
          for (ThreadType thread: threads) {
              acquired.addAll(thread.getAcquiredLocks());
          }
  
          Set<ThreadType> blocked = new HashSet<ThreadType>();
          for (ThreadType thread: runtime.getThreads()) {
              if (acquired.contains(thread.getWaitingToLock())) {
                  blocked.add(thread);
              }
          }
  
          return runtime.getThreadSet(blocked);
      }
docs: Get threads blocked by any of current threads.