diff --git a/platform/platform-api/src/com/intellij/util/ui/tree/TreeUtil.java b/platform/platform-api/src/com/intellij/util/ui/tree/TreeUtil.java index 041e5a89d347..6f952fb9c882 100644 --- a/platform/platform-api/src/com/intellij/util/ui/tree/TreeUtil.java +++ b/platform/platform-api/src/com/intellij/util/ui/tree/TreeUtil.java @@ -77,7 +77,7 @@ public final class TreeUtil { @Nullable public static T findObjectInPath(@Nullable TreePath path, @NotNull Class clazz) { for (TreePath p = path; p != null; p = p.getParentPath()) { - Object o = p.getLastPathComponent(); + Object o = getUserObject(p.getLastPathComponent()); if (clazz.isInstance(o)) return (T)o; } return null;