void () { myConflictsPanel.setToInitialPosition(); myUsagesPanel.setToInitialPosition(); final DefaultMutableTreeNode[] migrationNodes = myRootsTree.getSelectedNodes(DefaultMutableTreeNode.class, null); if (migrationNodes.length == 0) return; final Object userObject = migrationNodes[0].getUserObject(); if (userObject instanceof MigrationNode migrationNode) { final UsageInfo[] failedUsages = myLabeler.getFailedUsages(migrationNode.getInfo()); if (failedUsages.length > 0) { myConflictsPanel.showUsages(PsiElement.EMPTY_ARRAY, failedUsages); } final AbstractTreeNode<?> rootNode = migrationNode.getParent(); if (rootNode instanceof MigrationNode) { myUsagesPanel.showRootUsages(((MigrationNode)rootNode).getInfo(), migrationNode.getInfo(), myLabeler); } } }