TestDataLookupStrategy (Class<?> clazz) { // Check if the resulting strategy is already cached for the target class. TestDataLookupStrategy result = CLASS_STRATEGY_CACHE.get(clazz); if (result != null) return result; FileSystemLocation location = computeClassLocation(clazz); // We know that project location is ULTIMATE if control flow reaches this place. result = location == FileSystemLocation.COMMUNITY ? TestDataLookupStrategy.COMMUNITY_FROM_ULTIMATE : TestDataLookupStrategy.ULTIMATE; CLASS_STRATEGY_CACHE.put(clazz, result); return result; }