int offset) {
EObject element = eObjectAtOffsetHelper.resolveElementAt(resource, offset);
if (!(element instanceof Content)) {
return super.getXtextElementAt(resource, offset);
}
Content content = (Content) element;
for (Image image : content.getImages()) {
int hoverOffset = offset;
int imageOffset = image.getOffset() + getNode(content).getOffset();
if(hoverOffset >= imageOffset && hoverOffset < imageOffset + image.getLength()){
return Tuples.<EObject, IRegion>create(image, new Region(imageOffset, image.getLength()));
}