PsiAnnotation (PsiMethod method) { for (PsiAnnotation psiAnnotation : method.getAnnotations()) { String qualifiedName = psiAnnotation.getQualifiedName(); if (qualifiedName != null && "CheckReturnValue".equals(StringUtil.getShortName(qualifiedName))) { return psiAnnotation; } } return null; }