InvalidElementDetectedException
This usually happens during a long running operation on a read thread when a file is rewritten and some elements are made invalid. In most cases it's safe to catch and ignore this exception since your task will be invoked again by the IDE. (And this should never happen from a headless environment).