public static int getMaxNumberOfIndexingThreads() {
    // Change of the registry option requires IDE restart.
    int threadCount = INDEXER_THREAD_COUNT;
    if (threadCount > 0) {
      return threadCount;
    }

    return Math.max(1, getAvailablePhysicalCoresNumber() - getCoresToLeaveForOtherActivitiesCount());
  }
public static int getMaxNumberOfIndexingThreads()