String (PsiAnnotation[] annotation, @NonNls String attr) { for (PsiAnnotation psiAnnotation : annotation) { final String value = calcAnnotationValue(psiAnnotation, attr); if (value != null) return value; } return null; }