void (PsiMethod attr) { PsiType type = attr.getReturnType(); while (type instanceof PsiArrayType) type = ((PsiArrayType)type).getComponentType(); if (type != null && isAcceptableAnnotationValueType(type)) { myResult = createSimpleSubTypeResult(type); } }