title: Customizing of code generation in IntelliJ IDEA
body: <p>Im using IntelliJ IDEA 12. Can I customise code that is generated using "Refactor" functional?</p>
  
  <p>For example I want to change the template of setting generation(Encapsulate fields) from:</p>
  
  <pre><code>public void setField(String field) {
          this.field = field;
      }
  </code></pre>
  
  <p>to</p>
  
  <pre><code>public MyClass setField(String field) {
          this.field = field;
          return this;
      }
  </code></pre>