int () { int threads = Registry.intValue("idea.coverage.loading.threads"); final int maxThreads = Runtime.getRuntime().availableProcessors() - 1; if (threads == 0) { threads = maxThreads; } threads = Math.min(threads, maxThreads); threads = Math.max(threads, 1); return threads; }