void (@NotNull PsiNameValuePair pair) { if (!wrappedExpression.equals(pair.getValue())) { return; } final PsiReference reference = pair.getReference(); if (reference == null) { return; } final PsiElement target = reference.resolve(); if (target instanceof PsiAnnotationMethod) { expectedType = ((PsiMethod)target).getReturnType(); } }