Search code examples
eclipseintellij-ideacall-hierarchy

IntelliJ call hierarchy of fields


Eclipse JDT has a 'call hierarchy' feature -- start from a field/method and it recursively finds all references.

IntelliJ also implements this, but it only works from methods. For fields, you can only 'Find Usages', so if you want to dig deeper you have to do additional searches.

Tried 'Dataflow to here', but it's not what I'm looking for.

Am I missing something? Is there a better way to explore field usage in IntelliJ?


Solution

  • EDIT

    The issue below has been resolved and IntelliJ IDEA 2019.3 will have this feature.

    EDIT 2

    I downloaded:

    IntelliJ IDEA 2019.3 EAP (Community Edition)
    Build #IC-193.3793.14, built on September 25, 2019
    

    But it seems this issue was not fixed correctly, the call hierarchy for fields does not take you to the actual usage of the field in the method rather to the line of the method definition.

    See: https://youtrack.jetbrains.net/issue/IDEA-160274#focus=streamItem-27-3721096.0-0

    Original answer

    IntelliJ doesn't have this feature, however there is a feature request here: https://youtrack.jetbrains.com/issue/IDEA-160274

    If you would like the feature implemented, you can vote there.