private PsiField createField(final String fieldVisibility, final boolean fieldInitializerNeeded, String defaultTypeName) throws IncorrectOperationException {
    StringBuilder buffer = new StringBuilder();
    buffer.append(fieldVisibility);
    buffer.append(" final ").append(defaultTypeName).append("  ");
    buffer.append(myFieldName);
    if (fieldInitializerNeeded) {
      buffer.append(" = new ").append(defaultTypeName).append("()");
    }
    buffer.append(";");
    return myFactory.createFieldFromText(buffer.toString(), myClass);
  }
private PsiField createField(final String fieldVisibility, final boolean fieldInitializerNeeded, String defaultTypeName)