public static TreePath getTreePath()

in src/main/java/com/intellij/util/ui/UIUtilities.java [1798:1807]


    public static TreePath getTreePath(TreeModelEvent event, TreeModel model) {
        TreePath path = event.getTreePath();
        if ((path == null) && (model != null)) {
            Object root = model.getRoot();
            if (root != null) {
                path = new TreePath(root);
            }
        }
        return path;
    }