IDE-931

modified foundDuplicate variable's location in previous commit.