ProblemHighlightType (final DomElementProblemDescriptor problemDescriptor) { if (problemDescriptor.getHighlightType() != null) { return problemDescriptor.getHighlightType(); } if (problemDescriptor instanceof DomElementResolveProblemDescriptor) { final TextRange range = ((DomElementResolveProblemDescriptor)problemDescriptor).getPsiReference().getRangeInElement(); if (range.getStartOffset() != range.getEndOffset()) { return ProblemHighlightType.LIKE_UNKNOWN_SYMBOL; } } return ProblemHighlightType.GENERIC_ERROR_OR_WARNING; }