TextSearchVisitor.TextSearchJob.processFile() has a catch for FileCharSequenceProvider.FileCharSequenceException and tries to rethrow the exception cause. In the case where the cause is an IOException, throw the original FileCharSequenceException which is a RuntimeException