code: public static @Nonnull Predicate waitingOnLock(final @Nonnull String className) {
          return new Predicate() {
              @Override
              public boolean isValid(@Nonnull ProcessThread<?, ?, ?> thread) {
                  final ThreadLock lock = thread.getWaitingOnLock();
                  return lock != null && lock.getClassName().equals(className);
              }
          };
      }
docs: Match waiting thread waiting for given thread to be notified.