int () { int scanningThreadCount = Registry.intValue("caches.scanningThreadsCount"); if (scanningThreadCount > 0) return scanningThreadCount; int maxBackgroundThreadCount = getMaxBackgroundThreadCount(); return Math.max(maxBackgroundThreadCount, getNumberOfIndexingThreads()); }