Bug 141192 [Viewers] Javadoc change about multiple equal elements in StructuredViewer and AbstractTreeViewer
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
path = null;
		}
        IContentProvider cp = getContentProvider();
        if (cp instanceof ITreePathContentProvider) {
			ITreePathContentProvider tpcp = (ITreePathContentProvider) cp;
			if (path == null) {
				
				Widget w = findItem(element);
				if (w instanceof Item) {
					Item item = (Item) w;
					path = getTreePathFromItem(item);
				}
				if (path == null) {
					path = new TreePath(new Object[] { element });
				}
			}
			return tpcp.hasChildren(path);
		}
        if (cp instanceof ITreeContentProvider) {
			ITreeContentProvider tcp = (ITreeContentProvider) cp;
			return tcp.hasChildren(element);	
		}
		return false;
    }
    
    /**
     * Return whether the given element is expandable.
     * @param item the tree item for the element
     * @param parentPath the parent path if it is knwon or <code>null</code> if it needs to be determines
     * @param element the element