boolean (PsiAnnotation annotation, String... runners) { PsiNameValuePair attribute = AnnotationUtil.findDeclaredAttribute(annotation, PsiAnnotation.DEFAULT_REFERENCED_METHOD_NAME); final PsiAnnotationMemberValue value = attribute != null ? attribute.getDetachedValue() : null; if (value instanceof PsiClassObjectAccessExpression) { final PsiTypeElement operand = ((PsiClassObjectAccessExpression)value).getOperand(); final PsiClass psiClass = PsiUtil.resolveClassInClassTypeOnly(operand.getType()); if (psiClass != null) { String qualifiedName = psiClass.getQualifiedName(); if (qualifiedName != null && ArrayUtil.find(runners, qualifiedName) > -1) return true; } } return false; }