Here is my sad story:
My parser uses stub indexes. Now i can see that it was a not really good idea, but year ago it was fine and the most important it worked fine until the IDEA 2016 released and locks became a real problem and i've discovered that it's not allowed to use nested indexes access.
I've fixed all my code which utilized nested indexes access and even ported lock mechanism from new IDEA with possibility to check if indexes are currently unavailable for current thread.
But today i've got this: http://camelcade.myjetbrains.com/youtrack/issue/CAMELCADE-140
In one line: JS caused reparsing of Perl during indexes iteration. So, it's a checkmate for me...
But, may be there is a some way to check if indexes are not busy right now?
P.S. and yes, i'm going to remove indexes usage from parser, but it's not quite easy and will take time.