code: static @Nonnull List<ThreadLock> getSynchronizers(final ThreadInfo threadInfo) {
          final LockInfo[] synchronizers = threadInfo.getLockedSynchronizers();
  
          final List<ThreadLock> locks = new ArrayList<ThreadLock>(synchronizers.length);
  
          for (LockInfo info: synchronizers) {
              locks.add(getSynchronizer(info));
          }
  
          return locks;
      }
docs: /*package