IDEA-108817 intellij hangs typically on indexing
(cherry picked from commit 5f4bbc3)