inspections: avoid getElement() calls

This commit is contained in:
anna
2012-04-18 09:13:36 +02:00
parent f4939d2771
commit c16ac8d186
3 changed files with 3 additions and 3 deletions
@@ -644,7 +644,7 @@ public class UnusedDeclarationInspection extends FilteringInspectionTool {
final RefElement refElement = (RefElement)refEntity;
final HighlightSeverity severity = getCurrentSeverity(refElement);
final String attributeKey =
getTextAttributeKey(refElement.getElement().getProject(), severity, ProblemHighlightType.LIKE_UNUSED_SYMBOL);
getTextAttributeKey(refElement.getRefManager().getProject(), severity, ProblemHighlightType.LIKE_UNUSED_SYMBOL);
problemClassElement.setAttribute("severity", severity.myName);
problemClassElement.setAttribute("attribute_key", attributeKey);
}