code: private static void generateResetMethod(PrefsEntity entity) {
  		// write method
  		MethodSpec.Builder method = MethodSpec.methodBuilder("reset").addModifiers(Modifier.PUBLIC).addJavadoc("reset shared preferences\n").returns(Void.TYPE);
  
  		if (entity.isImmutablePojo()) {
  			ImmutableUtility.generateImmutableVariableInit(entity, method);
  			ImmutableUtility.generateImmutableEntityCreation(entity, method, "bean", true);
  		} else {
  			method.addStatement("$T bean=new $T()", entity.getElement(), entity.getElement());
  		}
  
  		method.addStatement("write(bean)");
  		builder.addMethod(method.build());
  	}
docs: Generate reset method.
  
  @param entity
  the entity