Tidying TextExtractor.java