String[] (PsiAnnotation anno) { PsiAnnotationMemberValue options = anno.findAttributeValue("options"); ArrayList<String> result = new ArrayList<>(); for (PsiAnnotationMemberValue initializer : AnnotationUtil.arrayAttributeValues(options)) { if (initializer instanceof PsiLiteral) { Object value = ((PsiLiteral)initializer).getValue(); if (value instanceof String) { result.add((String)value); } } } return ArrayUtilRt.toStringArray(result); }