code: public static FormValidation respond(Kind kind, final String html) {
          return new FormValidation(kind) {
              public String renderHtml() {
                  return html;
              }
              @Override public String toString() {
                  return kind + ": " + html;
              }
          };
      }
docs: Sends out an arbitrary HTML fragment as the output.