LocalResourceStatus statusParent = treeCacheRoot.getStatus(parent);
LocalResourceStatus statusParent = statusCache.getStatus(parent);
    private boolean isAncestorNotManaged(IResource resource) {        IResource parent = resource.getParent();        if (parent == null) {            return false;        }                while (parent != null) {            LocalResourceStatus statusParent = treeCacheRoot.getStatus(parent);                        if (statusParent != null) {            	if (!statusParent.isManaged()) {            		return true;            	}            }            parent = parent.getParent();        }        return false;    }