Improvement/set clearable writer

| Q                   | A
| ------------------- | ---
| Bug fix?            | No
| New feature?        | Yes
| BC breaks?          | No
| Tests pass?         | Yes
| Scenarios pass?     | Yes
| Checkstyle issues?  | No
| Changelog updated?  | No
| Fixed tickets       |
| Doc PR              |