public static boolean isInheritorOrSelfRunner(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());
      return psiClass != null && ContainerUtil.exists(runners, runner -> InheritanceUtil.isInheritor(psiClass, runner));
    }
    return false;
  }
public static boolean isInheritorOrSelfRunner(PsiAnnotation annotation, String... runners)