private static Collection<DomElementProblemDescriptor> getXmlProblems(DomElement domElement) {
Collection<DomElementProblemDescriptor> problems = new ArrayList<DomElementProblemDescriptor>();
</BUG>
if (domElement != null && domElement.getXmlTag() != null) {
problems.addAll(getResolveProblems(domElement));
<BUG>}
return problems;</BUG>
}
private static Collection<DomElementProblemDescriptor> getResolveProblems(final DomElement domElement) {
Collection<DomElementProblemDescriptor> problems = new ArrayList<DomElementProblemDescriptor>();

public void visitDomElement(DomElement element) {
problems.addAll(getProblems(element, map, function));
}
});
map.put(domElement, problems);
return problems;
}
private static Collection<DomElementProblemDescriptor> getResolveProblems(final DomElement domElement) {
Collection<DomElementProblemDescriptor> problems = new ArrayList<DomElementProblemDescriptor>();
