void (PsiElement resolved, PsiElement elementToHighlight, String elementName) { if (isDeprecated(resolved)) { registerError(elementToHighlight, GroovyBundle.message("0.is.deprecated", elementName), LocalQuickFix.EMPTY_ARRAY, ProblemHighlightType.LIKE_DEPRECATED); } }