code: public @Nonnull SetType getBlockedThreads() {
          Set<ThreadType> blocked = new LinkedHashSet<ThreadType>();
          for (ThreadType thread: runtime.getThreads()) {
              if (thread == this) continue;
              if (getAcquiredLocks().contains(thread.getWaitingToLock())) {
                  blocked.add(thread);
              }
          }
          return runtime.getThreadSet(blocked);
      }
docs: Get threads that are waiting for lock held by this thread.