diff --git a/platform/usageView-impl/src/com/intellij/usages/impl/UsageViewImpl.java b/platform/usageView-impl/src/com/intellij/usages/impl/UsageViewImpl.java index 73c77a090248..34fd0038b4af 100644 --- a/platform/usageView-impl/src/com/intellij/usages/impl/UsageViewImpl.java +++ b/platform/usageView-impl/src/com/intellij/usages/impl/UsageViewImpl.java @@ -1149,16 +1149,16 @@ public class UsageViewImpl implements UsageViewEx { myTree.expandPath(treePath); } } + myTree.getSelectionModel().clearSelection(); + for (UsageState usageState : states) { + usageState.restore(); + } } finally { if (myTree instanceof Tree jbTree) { jbTree.resumeExpandCollapseAccessibilityAnnouncements(); } } - myTree.getSelectionModel().clearSelection(); - for (UsageState usageState : states) { - usageState.restore(); - } } public void expandAll() {