void (boolean requestFocus) { int offset = 0; if (result instanceof XmlFile) { final XmlDocument xml = ((XmlFile)result).getDocument(); if (xml != null) { final XmlTag rootTag = xml.getRootTag(); if (rootTag != null) { final XmlTag[] id = rootTag.findSubTags(ARTIFACT_ID, rootTag.getNamespace()); if (id.length > 0) { offset = id[0].getValue().getTextRange().getStartOffset(); } } } } navigate(project, file, offset, requestFocus); }