[java] [kotlin] Remove redundant name field from JavaReferenceInfo and KotlinReferenceInfo

Problem to Solve

The name field in JavaReferenceInfo and KotlinReferenceInfo stores the full text of expression nodes (e.g., this.myParameter.bar()). This is memory-inefficient and causes our tests to be brittle, as they rely on exact string matching, which can fail on minor formatting changes.

Proposed Solution

  1. Stop Populating name: Modify the Java and Kotlin parsers to set the name field to an empty string for all reference expressions.

  2. Refactor Tests: Update the associated tests to retrieve references by their index in the parsed list instead of searching by name. This removes the dependency on the expression's text and makes the tests more robust.