skip non-java files with given word in literal even before retrieving text / searching the word / finding element at tree (IDEA-126201)
(cherry picked from commit 067aa19)