if (element != null) {
List<HtmlElementName> htmlElementNames = htmlElementCache.getHtmlElementNames(element.getElementName());
if (htmlElementNames != null) {
for (HtmlElementName htmlElementName : htmlElementNames) {
int lineNumber = WodHtmlUtils.getLineAtOffset(cache.getHtmlEntry().getContents(), htmlElementName.getStartOffset());
WodElementProblem htmlProblem = new WodElementProblem(element, "In the WOD, " + wodProblem.getMessage(), new Position(htmlElementName.getStartOffset(), htmlElementName.getEndOffset() - htmlElementName.getStartOffset() + 1), lineNumber, wodProblem.isWarning() || PreferenceConstants.WARNING.equals(wodErrorsInHtmlSeverity));
WodModelUtils.createMarker(htmlFile, htmlProblem);
}
}
}
}