title: Is there a way to apply IDEA "malformed format string" intention to custom methods?
body: <p>When writing code of the form: </p>
  
  <pre><code>String.format("blah %s %s", value1);
  </code></pre>
  
  <p>IntelliJ will warn that there is a mismatch between the number of format patterns and actual arguments: <code>too few arguments for format string (found:1, expected: 2)</code>.</p>
  
  <p>Is there any way to apply this logic to custom methods?
  For example:</p>
  
  <pre><code>/** @see String#format(String, Object...) */
  public String myMethod(String msg, Object... args){
    return String.format("blah " + msg, args);
  }
  ...
  
  myMethod("%s %s", value1);
  </code></pre>
  
  <p>The point being that I'd like IDEA to tell me I messed up.</p>
  
  <p>As shown in the example, I already document these methods that delegate to <code>String.format()</code>.   </p>
  
  <p>Ideally, I'd prefer to avoid duplicating that documentation - though I'd be willing to transform it into a custom format, or possibly an annotation (preferably not an IDEA annotation though). </p>