@Range(from = 1, to = Integer.MAX_VALUE)
  public static int getNumberOfScanningThreads() {
    int scanningThreadCount = Registry.intValue("caches.scanningThreadsCount");
    if (scanningThreadCount > 0) return scanningThreadCount;
    int maxBackgroundThreadCount = getMaxBackgroundThreadCount();
    return Math.max(maxBackgroundThreadCount, getNumberOfIndexingThreads());
  }
@Range(from = 1, to = Integer.MAX_VALUE)
  public static int getNumberOfScanningThreads()