private @NotNull JBIterable<Object> getSelectedElements() {
    return JBIterable.of(myTree.getSelectionPaths())
      .filterMap(o -> StructureViewComponent.unwrapValue(o.getLastPathComponent()));
  }
private @NotNull JBIterable<Object> getSelectedElements()