code: public static @Nonnull Predicate acquiredLock(final @Nonnull String className) {
          return new Predicate() {
              @Override
              public boolean isValid(@Nonnull ProcessThread<?, ?, ?> thread) {
                  for (ThreadLock lock: thread.getAcquiredLocks()) {
                      if (lock.getClassName().equals(className)) return true;
                  }
                  return false;
              }
          };
      }
docs: Match thread that has acquired lock identified by <tt>className</tt>.