Description
In IntelliJ, if you press CTRL-ALT-F7
in a keyword that is used a lot, like a toString()
declaration (in a large codebase), it will take FOREVER to finish. Actually I am not sure it would finish, I could never really wait enough to see it finish. I just see this:
As per @stevemessick suggestion (here: flutter/flutter-intellij#6346) I'm opening this to ask for a "Find usages in this hierarchy".
It should simply find the usages of the method on objects of that specific class and its subclasses.
It should not matter where it's defined. It matters the class of the method the caret was when I asked for Find Usages. It I was in MyClass.toString() then it finds toString() usages for MyClass and its subclasses. It should not find in superclasses. For example, it should not find this:
void logError(Object? obj) => obj.toString();
But it would find those:
void logError(MyClass? obj) => obj.toString();
void logError(MyClassSubclass? obj) => obj.toString();