PsiAnnotationMemberValue (@NotNull PsiClass annotationClass, @Nullable @NonNls String attributeName) { PsiMethod[] methods = annotationClass.findMethodsByName(attributeName, false); for (PsiMethod method : methods) { if (PsiUtil.isAnnotationMethod(method)) { return ((PsiAnnotationMethod)method).getDefaultValue(); } } return null; }