System.out.println("Extraction time: " + Math.round(elapsed) + "s");
System.out.println("Progress: " + percentage + "% done (" + i + " out of " + files.size() + ")");
System.out.println("");
}
}
<BUG>private static ContentExtractor createContentExtractor(ExtractionConfig config, Long timeoutSeconds)
throws TimeoutException, AnalysisException {</BUG>
ContentExtractor extractor;
if (timeoutSeconds != null) {
extractor = new ContentExtractor(timeoutSeconds);

System.out.println("Extraction time: " + Math.round(elapsed) + "s");
System.out.println("Progress: " + percentage + "% done (" + i + " out of " + files.size() + ")");
System.out.println("");
}
}
private static ContentExtractor createContentExtractor(Long timeoutSeconds)
throws TimeoutException, AnalysisException {
ContentExtractor extractor;
if (timeoutSeconds != null) {
extractor = new ContentExtractor(timeoutSeconds);
