if (attrs[i].getOffset() < offset && offset < attrs[i].getOffset() + attrs[i].getLength()) {
int attrOffset = getAttributeValueOffset(doc.get(), attrs[i]);
int attrLength = attrs[i].getValue().length();
if (attrOffset >= 0 && attrLength >= 0 && attrOffset <= offset) {
info = getOpenFileInfo(document, element, attrs[i].getName(), attrs[i].getValue(), offset - attrOffset);
IHyperlink hyperlink = null;
if (info != null && info.getObject() != null) {
if (info.getObject() instanceof IHyperlink) {
hyperlink = (IHyperlink) info.getObject();
}
else {