code: public static @Nonnull Predicate waitingToLock(final @Nonnull String className) {
          return new Predicate() {
              @Override
              public boolean isValid(@Nonnull ProcessThread<?, ?, ?> thread) {
                  final ThreadLock lock = thread.getWaitingToLock();
                  return lock != null && lock.getClassName().equals(className);
              }
          };
      }
docs: Match thread that is waiting on lock identified by <tt>className</tt>.