@Nullable public static IgnoreDescriptor forMethod(Class cls,Method mthd){
  if (mthd.isAnnotationPresent(IgniteIgnore.class)) {
    IgniteIgnore ignore=mthd.getAnnotation(IgniteIgnore.class);
    String reason=ignore.value();
    if (F.isEmpty(reason))     throw new IllegalArgumentException("Reason is not set for ignored test [class=" + cls.getName() + ", method="+ mthd.getName()+ ']');
    return new IgnoreDescriptor(reason,ignore.forceFailure());
  }
 else   return null;
}

@ Nullable public static IgnoreDescriptor forMethod ( Class cls , Method mthd ) { if ( mthd . isAnnotationPresent ( IgniteIgnore . class ) ) { IgniteIgnore ignore = mthd . getAnnotation ( IgniteIgnore . class ) ; String reason = ignore . value ( ) ; if ( F . isEmpty ( reason ) ) throw new IllegalArgumentException ( "Reason is not set for ignored test [class=" + cls . getName ( ) + ", method=" + mthd . getName ( ) + ']' ) ; return new IgnoreDescriptor ( reason , ignore . forceFailure ( ) ) ; } else return null ; }
get descriptor for method ( if any ) .
