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 778f2d04601e..2e2cd0bb57d2 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 @@ -946,7 +946,7 @@ public final class TreeUtil { } @Nullable - public static TreePath getSelectedPathIfOne(JTree tree) { + public static TreePath getSelectedPathIfOne(@NotNull JTree tree) { TreePath[] paths = tree.getSelectionPaths(); return paths != null && paths.length == 1 ? paths[0] : null; }