void (@NotNull GrAnnotationMethod annotationMethod) { super.visitAnnotationMethod(annotationMethod); final PsiReferenceList list = annotationMethod.getThrowsList(); if (list.getReferencedTypes().length > 0) { myHolder.newAnnotation(HighlightSeverity.ERROR, GroovyBundle.message("throws.clause.is.not.allowed.in.at.interface")).range(list).create(); } final GrAnnotationMemberValue value = annotationMethod.getDefaultValue(); if (value == null) return; final PsiType type = annotationMethod.getReturnType(); Pair.NonNull<PsiElement, @InspectionMessage String> result = CustomAnnotationChecker.checkAnnotationValueByType(value, type, false); if (result != null) { myHolder.newAnnotation(HighlightSeverity.ERROR, result.getSecond()).range(result.getFirst()).create(); } }