String (PsiField psiField, Class<? extends Annotation> annotationClass) { final PsiMethod getter = PropertyUtilBase.findGetterForField(psiField); final PsiMethod setter = PropertyUtilBase.findSetterForField(psiField); final PsiAnnotation attrAnno = PsiUtil.findAnnotation(annotationClass, psiField, getter, setter); if (attrAnno != null) { return AnnotationUtil.getDeclaredStringAttributeValue(attrAnno, "value"); } return null; }