boolean (@NotNull AnnotationHolder holder, @NotNull GrAnnotation annotation) { if (!isInAliasDeclaration(annotation)) return false; final PsiClass clazz = (PsiClass)annotation.getClassReference().resolve(); if (clazz == null) return true; final GrAnnotationNameValuePair[] attributes = annotation.getParameterList().getAttributes(); Pair<PsiElement, @InspectionMessage String> r = CustomAnnotationChecker.checkAnnotationArguments(clazz, attributes, false); if (r != null && r.getFirst() != null) { holder.newAnnotation(HighlightSeverity.ERROR, r.getSecond()).range(r.getFirst()).create(); } return true; }