mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
Currently `getNavigationOffset` is the method used to group and compare usages (see the documentation on `Usage#getNavigationOffset`). `myOffsetToCompareUsages` wasn't actually being used in this method, which meant that computing the navigation offset required restoring `PsiElement`'s from their pointers. This change renames the variable to reflect how it will be used, and checks its presence first in the `getNavigationOffset` to ensure we don't try restore `PsiElement`s unnecessarily. It additionally changes it from an `int` to a `Segment` to keep `getNavigationOffset` and `getNavigationRange` consistent. (cherry picked from commit 6fc32036bfe6b1df9e366a78e1155c19337bb1ae) IJ-CR-123421 GitOrigin-RevId: efc34ad2240560327602cc4fab6a8cc1422e2a0a