Example: Click "Find Usages" for some class which overrides toString. Select "Usages of methods" in the dialog box. IDEA starts a long search and quickly runs out of memory.
Possible solution: introduce some configurable limit after which "Find Usages" stops. A user is unlikely to browse through 10,000 occurences anyway.