title: Passign attribute name as parameter automatically in Java-8
body: <p>I would like to have a method to validate fields kind of</p>
  
  <pre><code>protected void validate(String field, String fieldName){
    if (field==null || field.isEmpty){
      throw new IllegalArgumentException("Parameter " + fieldName + " cannot be empty");
    }
  }
  </code></pre>
  
  <p>and use in my class for example</p>
  
  <pre><code>class Foo {
    private String x;
    private String y;
  
    ...
  
    public void validateAll(){
      validate(x, "x");
      validate(y, "y");
    }
  }
  </code></pre>
  
  <p>It would be great to use in this way</p>
  
  <pre><code>  public void validateAll(){
      validate(x);
      validate(y);
    }
  </code></pre>
  
  <p>and let the compiler pass the name of the variable automatically to validate(field, fieldName) method</p>
  
  <p>How can I achive this in Java-8 ?</p>