public static Result warning(String messageKey,Object... args){
  return new Result(Type.WARNING,Collections.singleton(new DiagMessage(messageKey,args)));
}

public static Result warning ( String messageKey , Object ... args ) { return new Result ( Type . WARNING , Collections . singleton ( new DiagMessage ( messageKey , args ) ) ) ; }
creates a new warning result with the given message .
