title: IntelliJ IDEA - Getter And Setters Template - JavaFX Observable
body: <p>I've created a Getter template for IntelliJ IDEA with the following code:</p>
  
  <pre><code>#if($field.modifierStatic)
  static ##
  #end
  $field.type ##
  #set($name = $StringUtil.capitalizeWithJavaBeanConvention($StringUtil.sanitizeJavaIdentifier($helper.getPropertyName($field, $project))))
  #if ($field.boolean &amp;&amp; $field.primitive)
  is##
  #else
  get##
  #end
  ${name}() {
  #if (!$field.primitive &amp;&amp; !$field.isModifierFinal())
      if($field.name == null)
          $field.name = new ${field.type}();
  #end
      return $field.name;
  }
  </code></pre>
  
  <p>Which creates something like:</p>
  
  <pre><code>public String getString(){
      if(mString == null)
          mString = new String();
      return mString;
  }
  </code></pre>
  
  <p>But when working in JavaFX with <code>Property&lt;T&gt;</code> it doesn't work, it seems that no matter the getter template it will always return </p>
  
  <pre><code>public StringProperty stringProperty(){
      return stringProperty;
  }
  </code></pre>
  
  <p>Any idea on how to change that default behavior?</p>