int () { // counting test cases involves parallel directory scan now IdeaForkJoinWorkerThreadFactory.setupForkJoinCommonPool(true); int count = 0; for (Class<?> aClass : myTestCaseLoader.getClasses()) { Test test = getTest(aClass); if (test != null) count += test.countTestCases(); } return count; }