boolean (final Element reportedProblem, final Element expectedProblem) { Element reportedTextRange = reportedProblem.getChild("entry_point"); if (reportedTextRange == null) return false; Element expectedTextRange = expectedProblem.getChild("entry_point"); return Objects.equals(reportedTextRange.getAttributeValue("TYPE"), expectedTextRange.getAttributeValue("TYPE")) && Objects.equals(reportedTextRange.getAttributeValue("FQNAME"), expectedTextRange.getAttributeValue("FQNAME")); }