String (@NotNull PsiAnnotation psiAnnotation, @NotNull String attributeName, @NotNull String defaultValue) { PsiAnnotationMemberValue attrValue = psiAnnotation.findDeclaredAttributeValue(attributeName); String result = attrValue != null ? resolveElementValue(attrValue, String.class) : null; return result != null ? result : defaultValue; }